Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: read/display image from Database using struts

Dariusz Wojtas

2006-12-18

Replies:

Custom servlet which retrieves data from DB, writes it to the output stream.
It should define correct headers first (mimeType, Expires, Date).
Map it to some url like
/images/*
and you may pass identifiers by composing URLs like
/images/<myID>.jpg

Dariusz Wojtas


On 12/18/06, Kranti <kranti.j2ee@(protected):
> Hi,
>
> How should I read/display image from Database...which is stored interms of
> bytes in the Database.
>
> Please suggest me some way to render the image in JSP.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.