Hi everybody..:).

I want to ask a question.

How to grab a blob file,(eg. Test.doc) from the database..
and open the file in an Editor, (eg WinWord) that open automatically from a jsp...

I manage to get the blob file from the database.

   ResultSet rs = stmt.executeQuery();

   while(rs.next())
   {
    byte bytes[] = new byte[1024*1024];
    int bytesRead = 0;

    //------
    Blob blob = rs.getBlob(2);
    InputStream in = blob.getBinaryStream();

but how to put it in the WINWORD, and HOW to open the Winword automatically?

Can anybody help me with this?..

Thanks.

===========================================================================
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

Reply via email to