Thank you, Wade and everyone else. ServletOutputStream worked perfectly.
Wade Chandler wrote:
--- Edmund Urbani [EMAIL PROTECTED] wrote:
Philip Cote 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
Caldarale, Charles R wrote:
From: Philip Cote [mailto:[EMAIL PROTECTED]
Subject: Re: Making a Database Image Show Up on a Jsp Page
My only sticking point is how I'm supposed to write that
binary data to the jpeg file.
I think the point people are trying to make is that you don't
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
Philip Cote 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
--- Edmund Urbani [EMAIL PROTECTED] wrote:
Philip Cote 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
Edmund Urbani wrote:
Philip Cote 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,
From: Philip Cote [mailto:[EMAIL PROTECTED]
Subject: Re: Making a Database Image Show Up on a Jsp Page
My only sticking point is how I'm supposed to write that
binary data to the jpeg file.
I think the point people are trying to make is that you don't need to
write any file at all