Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想上传数据库中的媒体和文本文件供我个人使用。我已经成功地将所有文件添加到数据库中,但我想在将每个文件上传到数据库之前扫描每个文件是否有病毒,这样受感染的文件就无法存储在数据库中。
在 VB.NET 中上传之前如何扫描文件以查找病毒?
使用 System.Diagnostics.Process 并启动命令行防病毒程序,例如 clam-av。
当然,这意味着您需要先将文件保存在临时目录中。