views:

250

answers:

1

Hi, I am wondering if its even possible. I am returning files from database (blob) and have them as bytes array. I would like to let the user to show the data content by clicking on associated object - something like opening in the WebBrowser which automatically selects the appropriate program..but I understand I would need to save the file to the disk. Is there any other solution which would work only from streams/byte arrays?

+4  A: 

You could try setting the WebBrowser.DocumentStream property:

browser.DocumentStream = new MemoryStream(blob);
Christian Hayter