打开“文件”从内存流?
我想知道这是否可能。我正在从数据库(blob)返回文件并将它们作为字节数组。我想让用户通过单击关联对象来显示数据内容 - 类似于在 Web 浏览器中打开,它会自动选择适当的程序..但我知道我需要将文件保存到磁盘。 是否有其他解决方案仅适用于流/字节数组?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试设置 WebBrowser.DocumentStream 属性:
You could try setting the WebBrowser.DocumentStream property: