Re: [OT] Re: read/display image from Database using struts

2006-12-18 Thread Kranti
Thank you very much Dariusz. I shall try this and update you. On 12/18/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote: Dariusz Wojtas ha scritto: > On 12/18/06, Kranti <[EMAIL PROTECTED]> wrote: >> Dear Dariusz , >> >> this is the first time for me to solve this kind of problem. >> could you

[OT] Re: read/display image from Database using struts

2006-12-18 Thread Antonio Petrelli
Dariusz Wojtas ha scritto: On 12/18/06, Kranti <[EMAIL PROTECTED]> wrote: 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 This is something simplified, may not compile - but exactly shows what.

Re: read/display image from Database using struts

2006-12-18 Thread Dariusz Wojtas
On 12/18/06, Kranti <[EMAIL PROTECTED]> wrote: 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 This is something simplified, may not compile - but exactly shows what needs to be done. Passing of

Re: read/display image from Database using struts

2006-12-18 Thread Niall Pemberton
Alternatively you could use a "download" action: http://wiki.apache.org/struts/StrutsFileDownload Niall On 12/18/06, Dariusz Wojtas <[EMAIL PROTECTED]> wrote: Custom servlet which retrieves data from DB, writes it to the output stream. It should define correct headers first (mimeType, Expire

RE: read/display image from Database using struts

2006-12-18 Thread mano dasanayake
006 2:21 PM To: Struts Users Mailing List Subject: read/display image from Database using struts 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 i

Re: read/display image from Database using struts

2006-12-18 Thread Kranti
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 <[EMAIL PROTECTED]> wrote: Custom servlet which retrieves data from DB, writes it to the output stream. It should defi

Re: read/display image from Database using struts

2006-12-18 Thread Dariusz Wojtas
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/.jpg Dariusz Wojtas On 12/18/06, Kranti <[EMAIL PROTECTE

read/display image from Database using struts

2006-12-18 Thread Kranti
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.