You could do it easily with a servlet - read the blob as a byte[], and
server it up in response to a request to /myservlet/imageid/image.jpg,
where /imageid/ is used to provide the id of the record that contains
the image.

Larry


On 8/24/05, Philip Cote <[EMAIL PROTECTED]> wrote:
> I'm trying to write to binary data from a MySQL database into a jpeg
> file so I can show it on a jsp page but I'm not having much luck.  My
> bean can create files outside the servlet / jsp context using the usual
> java.io classes.  As I understand it, java.io classes aren't allowed for
> EJBs.  Does this apply to plain java beans as well?  If so, what are the
> alternatives for doing what I'm trying to do?
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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

Reply via email to