Converting blob files to Word .doc files

Hi.
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.
https://reference.aspose.com/words/net/aspose.words/loadformat

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.
https://docs.aspose.com/words/net/serialize-and-work-with-a-document-in-a-database/

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.