Free Support Forum - aspose.com

Save and Retrieve Aspose Word to a Blob

Hi, i am looking to save an uploaded file to a sql server as a blob and then retreive those files and do a mail merge on them.

I believe you must save the document into a stream and then into a byte array, but i’m not sure exactly how to do this. Is there any sample code you can provide that would accomplish this.

Thanks.

Please check the following MSDN articles on how to read/write blob values from/to database:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconobtainingblobvaluesfromdatabase.asp

http://msdn.microsoft.com/library/en-us/cpguide/html/cpconwritingblobvaluestodatabase.asp

If you still have questions after reading them please don't hesitate to ask them here.

Best Regards,