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 09:46 AM.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center