Hi,

--- Emmanuel Bardet <[EMAIL PROTECTED]> wrote:
> Hello all,
> 
> I'm after a solution to display in a velocity portlet an image
> stored in a
> db. Has anybody faced this before ?
> 

This is not really a portlets question, more a "how do I return a
binary image from a url/servlet request" - in your portlet you will
be returning a standard <img src=...> tag - its the url of that
source that needs to hit the DB.

You could do this using a standard servlet - that just sends binary
content back - mapping the image in the db to the output stream.

Or use the RawScreen facilities in Turbine to do the same - which
gives you hooks into the db connections and user stuff.

HTH,
Chris

=====
http://www.soccer2002.org.uk - join in and win CA$H!

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to