Re: Making a Database Image Show Up on a Jsp Page

2005-08-26 Thread Philip Cote
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

Re: Making a Database Image Show Up on a Jsp Page

2005-08-26 Thread Philip Cote
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

Re: Making a Database Image Show Up on a Jsp Page

2005-08-24 Thread Larry Meadors
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

Re: Making a Database Image Show Up on a Jsp Page

2005-08-24 Thread Edmund Urbani
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

Re: Making a Database Image Show Up on a Jsp Page

2005-08-24 Thread Wade Chandler
--- 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

Re: Making a Database Image Show Up on a Jsp Page

2005-08-24 Thread Philip Cote
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,

RE: Making a Database Image Show Up on a Jsp Page

2005-08-24 Thread Caldarale, Charles R
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