Write an HTML img tag which passes an image ID to a custom servlet which
retrieves the image from the database:

  <img src="/context/ImageServlet?imgid=02349872" />

-- 
Danny Yates
 


-----Original Message-----
From: Sloan Seaman [mailto:[EMAIL PROTECTED] 
Sent: 28 August 2003 14:05
To: Struts Users Mailing List
Subject: Display img from DB


I've got some img files stored in a database as byte[]'s.

Is there any easy way to get display the images in an HTML page?

I figure I will have to write a custom tag for the img retrieval, but I
can't just dump the byte[].

How do you go about doing this?

Thanks!

--
Sloan


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________


_____________________________________________________________________ 
Notice to recipient: 
The information in this internet e-mail and any attachments is confidential
and may be privileged. It is intended solely for the addressee. If you are
not the intended addressee please notify the sender immediately by
telephone. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. 

When addressed to external clients any opinions or advice contained in this
internet e-mail are subject to the terms and conditions expressed in any
applicable governing terms of business or client engagement letter issued by
the pertinent Bank of America group entity. 

If this email originates from the U.K. please note that Bank of America,
N.A., London Branch, Banc of America Securities Limited and Banc of America
Futures Incorporated are regulated by the Financial Services Authority.
_____________________________________________________________________ 



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

Reply via email to