I need to create a C # .NET solution to view the .docx file directly from the database without writing to the hard drive. What would be the most appropriate approach?
One option is to convert the docx file to .mht format and save it to the database as a blob type. But I could not find a way to directly view it from the database.
Another way is to convert the docx file to a .jpg file, which can be directly viewed from the database using file management in .NET. The accepted approach was to convert docx to .mdi first, and then to .tiff format (using Microsoft Image Writer) and convert to jpeg. But this is due to several I / O operations, which reduce the efficiency and reliability of the solution.
If someone knows how to improve the above options or any new ideas, this will really be appreciated. thanks in advance:)
source
share