Virus-Scanning uploaded files uploaded?

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
 
D

Deepak Kumar Vasudevan

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
================================


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
 
Last edited by a moderator:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top