You'd have to write an Action which reads the image from the DB and
writes it onto the servlet's output stream.  There was a thread just
yesterday which discussed how to do this.  You can set your image URL
to that action and provide it with enough parameters to find your
image in the DB.

Hubert

On 1/24/06, Gary Feidt <[EMAIL PROTECTED]> wrote:
> Hi Everybody,
>
> I'm using Struts 1.2.4, with no frills (JSTL, Struts EL) - just using
> Struts framework and tags.
>
> I am exploring the ability to display images from database - never done
> this before.  I'm guessing I can get the data out by using the
> java.sql.getBinaryStream
>
> Will the <html:img> tag display a java.io.InputStream, or is there a
> better way?
>
> Thanks,
>
> Gary
> __________________________________
>
> Confidentiality Statement:
> This email/fax, including attachments, may include confidential and/or 
> proprietary information and may be used only by the person or entity to which 
> it is addressed. If the reader of this email/fax is not the intended 
> recipient or his or her agent, the reader is hereby notified that any 
> dissemination, distribution or copying of this email/fax is prohibited. If 
> you have received this email/fax in error, please notify the sender by 
> replying to this message and deleting this email or destroying this facsimile 
> immediately.
>
> ---------------------------------------------------------------------
> 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