[S2] Struts and blob image from Oracle

2008-08-21 Thread Alessio Bandini
Hello, I have a web application that must get image from blob field stored in an Oracle DB, but I cannot find "how to" examples. Here is my sources. Where is the error? default.jsp --- struts.xml -- image/jpeg img

Re: [S2] Struts and blob image from Oracle

2008-08-21 Thread Gabriel Belingueres
Please post the error (stack trace?). I suppose that if you want to "show" the image, you need some tag in your html page result. tag doesn't generate tags for you AFAIK. 2008/8/21, Alessio Bandini <[EMAIL PROTECTED]>: > > Hello, > > I have a web application that must get image from blob field

Re: [S2] Struts and blob image from Oracle

2008-08-22 Thread Alessio Bandini
I'm sorry again. The mailing list manager does not allow attached files. But the problem is still the same. I get the image from DB, but I see binary characters and not the image. Probably I have to use some special tags but I cannot understand what. Thanks. Alessio Bandini wrote: Thanks, I'

Re: [S2] Struts and blob image from Oracle

2008-08-22 Thread Jeromy Evans
Your configuration is okay but you have misused the action tag. You can't embed an inline image within an HTML page. ie. you've started sending a result, which is from JSP, and then part-way though you've attempted to output some binary data in the same output stream. You do not need spec

Re: [S2] Struts and blob image from Oracle

2008-08-22 Thread Alessio Bandini
Thanks a lot. It works. :) Jeromy Evans wrote: Your configuration is okay but you have misused the action tag. You can't embed an inline image within an HTML page. ie. you've started sending a result, which is from JSP, and then part-way though you've attempted to output some binary data