Help needed... Saving word docs in oracle


#1

Hi,

Can we save the word document generated using aspose words in a oracle database as a blob or any other format. Does Aspose provide any such feature by which we can convert the word document generated into either a binary stream or string and save it to the database as well as retrieve this data from the db and generate the document later ?

Any help on this would be really useful.

Thanks and advance.


#2

Yes, that is possible using Document(Stream) constructor and Document.Save(Stream, SaveFormat) method.

To find out how to read/write byte array from/to database please check the following articles in MSDN:

  1. Obtaining BLOB Values from a Database.
  2. Writing BLOB Values to a Database.