This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes  Help needed for showing the Employee Pic with other properties    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark " Help needed for showing the Employee Pic with other properties    " Watch " Help needed for showing the Employee Pic with other properties    " New topic
Author

Help needed for showing the Employee Pic with other properties

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi

I am developing a internal site for my Company .First of all my basic requirement is that if a Employee id is provided in a Textield and clicked on the submit button .

I want to show all the details of that Employee including his photo .


please help me for this .
(The problem comes for me when i need to show the Pic of the Employee)


What should be the datatype i should keep for the Image in the Employee Value Object and how to set the data on to the setter methods for that method .


Please share your ideas .


Save India From Corruption - Anna Hazare.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30356
    
150

Ravi,
A picture would be a BLOB object. You can use getBinaryStream() to retrieve it.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thank you , that helped me .
 
Consider Paul's rocket mass heater.
 
subject: Help needed for showing the Employee Pic with other properties