----- Original Message ----- From: "CalvinD" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Wednesday, May 17, 2006 12:26 PM
Subject: Displaying Photos stored in Oracle in HTML generated by servlet



I am working on a project that queries staff information and photos from our
oracle database and I need to display this information in a web page.
I can query and display the textual data but now I need to add the image
along with the text.
If this is not the right form, please direct my to the most appropriate.
Otherwise, any help will be appreciated.

I'm not quite sure what you want.

Are you asking if it is possible? Are you looking for a program that does what you want? Are you looking for code fragments that show the gist of how to do what you want? Are you concerned with how to get the picture out of the database or how to display it once you've retrieved it or both?

In a nutshell, it sounds like it ought to be pretty straightforward to do what you want to do. I've obtained blobs from databases before - but it was a DB2 or MySQL database, not Oracle - it wasn't too hard. Simply displaying a JPEG, GIF, or PNG from the filesystem within a servlet is easy. Fetching a blob from a database and then displaying it might be a little harder; you may have to put the image in the file system first although, now that I think about it, the ImageIO classes should be able to grab the photo without first having to write it to the file system.

Of course, I'm assuming that your program will be written in a recent version of Java that support ImageIO.

--
Rhino



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.6.0/341 - Release Date: 16/05/2006


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to