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
Hi kranti, You have to use BLOB's to store images in the DB.. Get the Out Stream from the BLOB and then write the byte[] to it.. http://wiki.apache.org/struts/StrutsFileUpload Regards, Mano -Original Message- From: Kranti [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 2:2

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