How to convert Byte array of Image into .docx file?
Hi, I have an Image data type field in database. I need to convert those files in to .docx.I am using open xml.Please suggest me How can I convert those Image byte array into .docx files?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Tuhin PaulPosted Jun 16, 2023, 2:59 AM
Tuhin PaulPosted Jun 16, 2023, 2:58 AM
To convert image byte arrays into a .docx file using Open XML, you can follow these steps:
Marvin ReidPosted Jun 14, 2023, 8:07 PM
An option that can be used is to leverage the DocumentConverter class which would allow you to pass the byte data from the database, convert it to a stream, and then output a .docx file. Here is some code that demonstrates this:
https://www.leadtools.com/help/sdk/tutorials/dotnet-console-convert-files-with-the-document-converter.html
Shubham GangradePosted Jul 7, 2020, 8:31 AM
Sapna GirishPosted Jul 6, 2020, 8:06 PM