You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Bert Van Kets <be...@visitronics.be> on 2001/12/21 09:47:21 UTC

Getting an image out of a BLOB field

Hi Guys,
if I have images stored in BLOB fields in a database, how do I get them out 
of there and to the browser?
If I use the SQL generator/transformer in the sitemap I would get XML 
containing the binary data.  Can this data be sent to the browser as a 
image/jpg mime type?
Is this the way to go, or do I need some other way.

I'm using Win2K server, Apache 1.3, Tomcat 4, Cocoon v2.

Thanks,
Bert


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Getting an image out of a BLOB field

Posted by Berin Loritsch <bl...@apache.org>.
Bert Van Kets wrote:

> Hi Guys,
> if I have images stored in BLOB fields in a database, how do I get them 
> out of there and to the browser?
> If I use the SQL generator/transformer in the sitemap I would get XML 
> containing the binary data.  Can this data be sent to the browser as a 
> image/jpg mime type?
> Is this the way to go, or do I need some other way.
> 
> I'm using Win2K server, Apache 1.3, Tomcat 4, Cocoon v2.


Try using the DatabaseReader!




-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
                 - Benjamin Franklin


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>