How do I get the C# Winforms Webbrowser control to show PDF content embedded in the html file as bin
Posted
by uniball
on Stack Overflow
See other posts from Stack Overflow
or by uniball
Published on 2010-04-12T22:31:20Z
Indexed on
2010/04/12
22:32 UTC
Read the original article
Hit count: 1915
I am using a Winforms webbrowser control to display HTML content stored in my SQL DB table. However, some of my contents are PDFs which I intend to store as binary data in the SQL DB and feed to the Webbrowser control. I wish to avoid the hassle of storing the binary content in a temporary file on the client machine and then create html container code to reference this temporary PDF file. Is there a way inwhich I can embed the PDF binary content into the html directly and show this html on the webbrowser control directly?
I found these previous threads referring to a COM 'hack'. Is there a simpler, easier way? Thanks! http://stackoverflow.com/questions/290035/how-do-i-get-a-c-webbrowser-control-to-show-jpeg-files-raw
Thanks, uniball
© Stack Overflow or respective owner