If the user is using IE on Windows, by default, the MS Word functionality
would take
over the IE.

That is, provided that the IE is set to open from the location it is
downloading from.

regards,
Cheong Takhoe

-----Original Message-----
From: Aidil Fitri [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 9:53 AM
To: [EMAIL PROTECTED]
Subject: How to open a blob file in Winword that open automatically?


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

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