tags:

views:

80

answers:

3

Would like to hear your suggestion to implement anti-virus Java API to scan uploaded document/files before storing them into database.

+1  A: 

I'm not sure if it is really an option, but just in case it makes sense.

If you write your uploaded file to disk before storing it into database, you can use the 'corporative' command line antivirus tool or any other of your choice.

antispam
+1  A: 

I can't answer to the "good" part of the question, but I did find this thread from a few years ago. A couple of tools mentioned there are Metascan and OpenAntivirus which might at least get you started.

Also, according to this, Postini uses Authentium which does offer an SDK. That might be worth looking at.

I haven't tried any of these products and I can't vouch for them. I'm just sharing what I found.

And, of course, command-line access is available for most (all?) major AV products.

Isaac Truett
+2  A: 

There is a toolkit company in San Francisco called OPSWAT which offers their file multiscanning product (Metascan) in 3 packages. They offer one month free trial and support. I set up a pilot program and tested their application which was impressive. You can select from a laundry list of sample codes such as ASP.NET and PHP. A live demo of their product is at www.filterbit.com. Their page is :http://www.opswat.com/products/metascan

SecurityHero
+1 An useful tool for all types of virus scanning.
Venkat