大图像的 ADODB.Stream 替代方案
需要找到使用 ADODB.Stream 的替代方案,因为它将整个文件加载到内存中,并且文件大小超过 200MB,同时下载很容易耗尽内存。
我唯一能做的就是在 ASP.Net 中重写或编写我们自己的 COM 组件,该组件不会将整个文件加载到内存中。
Need to find an alternative to using ADODB.Stream as it will load the entire file into memory and with file sizes over 200MB and simultaneous downloads can easily run out of memory.
The only thing I can find to do would be to either rewrite in ASP.Net or write our own COM component that wouldn't load the entire file into memory.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不认为 ADODB.Stream 实际上会将整个文件读入内存,它会使用临时目录中的 .tmp 文件。 然而,这仍然不是最理想的方法。
过去,我构建了自己的 VB6 组件,以在 WinAPI 之上创建 IStream 实现,并广泛搜索了此类替代方案,但一无所获。
替代完全重写 ASP.NET 的一种选择是创建一个 .NET COM 组件来处理文件的泵送流。
I don't think ADODB.Stream actually does read the whole file into memory, it will use a .tmp file in the Temporary directory. However it still isn't the most desirable approach.
In the past I've build my own VB6 component to create an IStream implementation on top of the WinAPI having done extensive searching for such an alternative and finding nothing.
One option you have instead of a complete re-write to ASP.NET would be to create a .NET COM component to handle pumping stream to a file.