Tim Lucia wrote:
Have the
servlet set the response type to image/jpeg or image/png or whatever is
appropriate, and then stream the bytes out of the blob from the DB.
Hm, that is something interesting what I need also.
As I quickly wrote down that code it should be:
      byte[] mybytes=// get image from the database
       response.setContentType("image/jpeg");
       ServletOutputStream stream = response.getOutputStream();
       stream.write(mybytes);

Right?
Andrea Salvi (or whoever who started this discussion), please
post code you will use :).


--
Mladen Adamovic
http://www.online-utility.org http://www.shortopedia.com http://www.froola.com http://www.gift-idea4u.com



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to