how to save MS Word doc to database and show on webpage??
I have a requirement to upload a MS Word document to database and need to show on Webpage. Word document may also have images. Does anybody help me out in that kind of scenario? Thanks in advance.

Kyle StoryPosted Nov 28, 2014, 5:42 AM
Well you will definitely need to convert your DOCX to a HTML format with C# in order to add that content to a DIV. But using the word interop with C# on server side does have its issues, also you cannot avoid the steps of generating the physical files which you would eventually need to delete.
But the problem that I had with this approach is that you simply cannot (at least I didn't find any way...) embed the images as data URIs:
http://en.wikipedia.org/wiki/Data_URI_scheme
So as an alternative here is an approach that you can use to read and convert your DOCX file's stream in C# (no physical file is needed) and then retrieve the HTML content as a string with an embedded images inside of it:
The code uses this word component for .NET framework.
Ankur JainPosted Aug 6, 2014, 7:25 AM
checkout the thread, may be it will help you...
http://aspsnippets.com/Articles/Display-Word-document-on-web-page-in-ASP.Net.aspx
Rishikesh Kumar SinghPosted Aug 6, 2014, 6:28 AM
After retrieving that saved byte from database i want to show on webpage itself (inside a div as innerhtml). I want to show the contents as it was (with images and formating). So, kindly help me in this scenario.
Ankur JainPosted Aug 5, 2014, 7:51 AM