Java Mailing List Archive

http://www.junlu.com/

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

Re: read/display image from Database using struts

Kranti Parisa

2006-12-18

Replies:

Dear Dariusz ,

this is the first time for me to solve this kind of problem.
could you provide some sample code to address this.

thanks in advance


On 12/18/06, Dariusz Wojtas <dwojtas@(protected):
>
> 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.