The basic mechanism is to set the Content Type and Length, get the OutputStream from the Request, getBinaryStream from JDBC and loop through reading from the JDBC Input Stream and writing to the Servlet Output Stream. (*Chris*)
----- Original Message ----- From: "Emmanuel Eze" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 03, 2002 3:54 AM Subject: [SERVLET-INTEREST] Encoding JPEG > Hi, > > Can someone please advise me on how to serve a JPEG image that is stored as > a binary stream in a database? > > > Thanks > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html