Yo dude do this. Bye the way if you searched the archives you would of
found it, cause that is where i got this code :)
<%
String comment = request.getParameter("comment");
InputStream input;
DataInputStream dataInput;
Connection con = null;
String line = "";
java.sql.Blob myBlob = null;
try {
con = dbCon.getConnection("system");
Statement stmt = con.createStatement();
stmt.execute("select blob_data from blob where write some code to
get one blob");
ResultSet rs = stmt.getResultSet();
rs.next();
ByteArrayOutputStream bos = new ByteArrayOutputStream(1024);
int n=0;
InputStream in = rs.getBinaryStream("blob_data");
while((n = in.read()) != -1)
{
bos.write(n);
}
out.println(bos.toString());
rs.close();
stmt.close();
con.close();
} catch (SQLException e){}
%>
Daniel Jaffa
Stuff i say i know: Java, JSP, JavaBeans, TagLibs, J2EE, EJB
Before asking someone, do a search on google: Google will set you free
"If you are not happy, I am not happy"
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com