Free Support Forum -

Inserting / reading files from DB

Hi…Can we use Aspose.Words for inserting / reading files in Database. Using Java
If any then can u please send me some sample code or LINK for the same


<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. Sure, you can read documents from database and write then back. As you know you can create Document object from input stream, so the only thing you need to read a document from database is reading blob data into a input stream and then create Document object from this stream. You can find simple code example here:

Hope this helps.

Best regards.

Thanks for your Immediate reply,
It worked for me…