GAG> how to show a (InterBase) BLOB field?
BufferedOutputStream out = new
BufferedOutputStream(response.getOutputStream());
// get your Connection, make your query, don't forget ResultSet.next()
etc.
// And then:
response.setContentType(CONTENT_TYPE_HERE); // e.g. "image/gif"
int bytesRead;
byte[] buf = new byte[1024];
InputStream dbin = rset.getBinaryStream(FIELD_NO_OR_NAME_HERE); //
e.g. "my_blob_field"
while (((bytesRead = dbin.read(buf)) != -1) && (!rset.wasNull())){
out.write(buf, 0, bytesRead);
}
out.flush();
Cheers -- Thomy.
___________________________________________________________________________
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