We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Converting blob files to Word .doc files


I have a blob file in my db, which I read and then I convert the same blob file to word file.

How can I do this using Aspose.Words?

Hi there,

Thanks for your inquiry.

With Aspose.Words, you can load file formats mentioned at following documentation link into Aspose.Words DOM.

Once you have loaded a file of LoadFormat into Aspose.Words DOM, you can easily convert it to Word file. Following code example shows how to convert RTF document to Docx.

// Open the RTF document

Document doc = new Document(MyDir + "in.rtf");

//Save the document to docx format

doc.Save(MyDir + "Out.docx", SaveFormat.Docx);

Hi there,

You can load and save documents into/from database by using the approach shared at following documentation link.

Once you have read the blob from database (see ReadFromDatabase method), you can convert it to Doc/Docx using Document.Save method. Hope this helps you. Please let us know if you have any more queries.