This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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


JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32481
    
214

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


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thank you , that helped me .
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Help needed for showing the Employee Pic with other properties
 
It's not a secret anymore!