Last post Mar 20, 2008 04:15 AM by metascan
Oct 11, 2007 02:23 AM|extremedotnet|LINK
I have an application that allows users to upload files. These files are uploaded and saved to a SQL Server database table (in a field with image data type). Now here's what I would like to do:
When the file is uploaded (and before it's saved on the SQL Server), I would like to check if the file being uploaded (at this point I have a byte of file content) is clear of viruses. And if the file is infected, then I need to notify the user.
Essentially, I would like to call a blackbox API... something like:
bool IsVirusFree(byte dataToScan)
I do not want to save (not even temporarily) the data on the web server (which does have a McAfee AV scanner installed).
What technologies/methodologies are available for .NET to accomplish what I am looking for? Do any Anti-Virus vendors expose such an API?
Mar 20, 2008 04:15 AM|metascan|LINK
You may want to consider OPSWAT Metascan http://www.opswat.com/metascan.shtml
Demo scanning solution powered by Metascan using 6 Antivirus engines
Technical Knowledge Base & Technical Support
You may also direct technical questions to
The current price for Metascan is posted at
Metascan is licensed on per installation basis, not per user or per scan.
Note that our license pricing does not distinguish between developer, test, production and hot back-up installations.
An installation is an installation, regardless of how the customer uses that installation.
An annual Metascan license includes the right to use, during the license period, built-in engines from:
Norman Virus Control
ESET NOD32 Antivirus Engine
Microworld eScan Engine (powered by Kaspersky)
ClamAV™ (free antivirus)
The Metascan license does not restrict the number of scans you can do with a built-in engines on the installation.
I have attached an order form. Please contact me with any questions.
Additional Product Information Resources
Built-in Engine Performance Analysis at
Supported (non-built-in) antivirus packages listed at
Metascan process movie at
Product detail page is available at
2 features which may be of interest:
1. Archive Library – this library enables unpacking of several archive types. Many antivirus packages don’t natively scan contents of many archive types. Supported archive types include:
Zip, Rar, Tar, Jar, Lha, Gzip, Bzip, arj, Nsis, Iso, Msi, Sfx, rar, cab
2. Binary Format Verification – this feature supports verification of the following file formats, even when the file-tag has been changed (e.g. from .DOC to .PDF). Supported formats include:
ANI, ARJ, CAD, AVI, BMP, DataZfile, Doc, EPS, EXE, Font_Type1, Gif, GZip, ICO, IS_Uninst, CAB, Jar, JavaClass, JPEG, LHA, MDB, Mp3, MPEG, Hlp, WMF, MIME, MsLibrary, LNK, DB, OBJ, XML, PCX, PDF, PIF, PKLite, PNG, QTMovie, SFXexe, RAR, RIF,
TAR, Txt, Tiff, TNEF, TTF, Unicode, UnixComprs, Visio, WMV, WAV, XLS, Xara, Zip, Zoo, ISO, NSIS, MSI