Converting a word document to text without saving file


#1

I wanted to know whether the following was possible. I have a word file stored as an image in a database. I want to read out the word file and then convert it to text and write it back into the database. Can the component operate on bytes or the like. I want to be able to do without having to save the file to disk.
thanks


#2

Hi,

Thank you for considering Aspose.

Yes, you should read the document from the database to a stream, load the document from this stream as described here:

http://www.aspose.com/wiki/default.aspx/Aspose.Word/OpeningOrCreatingDocuments.html

and save it as text back to the stream as described here:

http://www.aspose.com/wiki/default.aspx/Aspose.Word/SavingDocuments.html

and then write the stream back to the database.