This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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: 30138
    
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 .
 
jQuery in Action, 2nd edition
 
subject: Help needed for showing the Employee Pic with other properties
 
Similar Threads
How to fetch a picture from DB?
How to add multiple Image using applet!!
passed SCJP1.4 with 93% & a question
updating check box with HQL in Struts 1.3
Employee manage ment system java