Storing of Word Docs in the database
Can anyone tell me how I could save the doc that I have retrieved (using the File tag).
Iím able to read the file; I would like to know how I could save the same in the database (SQL) i.e. the file streams that I could use in the JSP tag.
the following code only helps me to view the contents in the server as an output...
// Open the file that is the first
// command line parameter
FileInputStream fstream = new FileInputStream(f1);
// Convert our input stream to a
DataInputStream in = new DataInputStream(fstream);
// Continue to read lines while
// there are still some left to read
while (in.available() !=0)
// Print file line to screen
But i need to save the same in another file and then save it in the local SQL server machine.
Can anyone please help me?
Thanks in advance.
Last edited by Litha; 01-24-2005 at 08:46 AM.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL