开发者

Uploading Excel files to Memory (RAM), not the file system

We're looking for a way to upload MS Excel files from a web page to memory. We want to avoid saving the file to disk (because of virus issues). We can use .Net or a component if it is availalbe.

Detail: We have a web page, the page allows users to upload the Excel file. We don't want to save the web file to RAM, 开发者_如何转开发we want to open it in memory.


Viruses are harmless on the file system - they become harmful when they are executed, and stuff is always executed from RAM.

So you gain absolutely nothing by uploading into RAM, if ASP.net even allows that (how it handles file uploads is implementation specific, it may hold it in RAM or in a Temp File).

If you are worried about viruses, don't run the Excel file. Run a Virus Scanner, or go all the way and spin up a sandboxed Virtual Machine every time a file gets uploaded - depending on your exact usage and requirements.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜