Virus-Scanning uploaded files uploaded?

  • Thread starter Thread starter Matt G
  • Start date Start date
M

Matt G

Hi,
I'm uploading files from a website and storing them as BLOB's in SQL.
Any idea how to scan the binary stream before persisting it to the
database?

The only virus scanning solution i've come accross so far is to use
the Norton command line virus scanner, but does anyone know of any
anti-virus libraries (dll) that can be called from .Net?

Thanks

Matt Goodman
 
Hi Matt:

The ASP Page need to execute a shell script to call the VirusScanner and
pass the file.You may need to check the return value of the Virus Scanner.
Perhaps you would have observed WinZip or UltimateZip doing this when you
select 'Scan For Viruses' option from the UI of the Zipping Program.

McAfee On Demand Virus Scanner is available in C:\Program Files\Common
Files\Network Associates\On Demand Scanner\Scan32\scan32.exe

AVG Virus Scanner is available in AVGSE.exe Check out this article for
batch files from ASP.

http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_20477517.html

For ASP.NET, you can use System.Diagnostics

Did this help you?
--

--
================================
Deepak Kumar Vasudevan [MVP .NET]
CS Software Solutions

Phones: +91-44-2819-1336 thru 38
91-98400-26014
www.cssolutionsinc.com
================================


Hi,
I'm uploading files from a website and storing them as BLOB's in SQL.
Any idea how to scan the binary stream before persisting it to the
database?

The only virus scanning solution i've come accross so far is to use
the Norton command line virus scanner, but does anyone know of any
anti-virus libraries (dll) that can be called from .Net?

Thanks

Matt Goodman
 
Back
Top