Rhino,
That for getting back to me. 
I am coding with Java 1.5(or whatever they call the latest version). I
have all the framework done and can create the table without the
images.
I would prefer not to have to write the image to the file system since
there could be many photos being displayed depending on the parameters.
I have a person class that has one Blob field image_data and five
String fields(name, location, etc.).
I need to write that image_data field to the response along with the
other fields in the servlet so that the image is displayed on the web
page.
Thanks
Calvin
 


>>> [EMAIL PROTECTED] 5/17/2006 2:11:34 PM >>>

----- 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] 


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

Reply via email to