Anti virus API ?

Hi all,

I have a servlet site with uploading capabilities.
Due to the recent spat of viruses, i need to scan through an upload and the user will need to be prompted if the upload contains a virus . How can i go about doing this ? I have been through a few sites like norton but they do not provide such APIs . It doesn't have to be free.

Thanks
shenlong_wcAsked:
Who is Participating?
 
PashaModConnect With a Mentor Commented:
PAQed, with points refunded (100)

PashaMod
Community Support Moderator
0
 
shenlong_wcAuthor Commented:
Hi Orangehead,

thanks for the link, but their interface is in C/C++
i posted this question in the Java section with intention for a Java interface solution
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Tommy BraasCommented:
I seriously doubt that you will find anyone providing Java APIs for anti-virus scanning functionality. However, it is fairly easy to write native code in C/C++ bridging the gap between Java and the native world.

You can find some illuminating sample code here: http://java.sun.com/developer/codesamples/jni.html

You will need to use the 'javah' tool to generate the C stub file you will use:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javah.html
0
 
shenlong_wcAuthor Commented:
Hi,

Thanks for the heads up
but i'd like to keep it 100% java
0
 
Tommy BraasCommented:
I think you're out of luck. This SDK might be of interest though.

Good luck!
0
 
shenlong_wcAuthor Commented:
there's a 3rd party connector called OPSWAT AntiVirus Integration SDK

as taken from their website :

Professional Integration Development Kit for AntiVirus Applications
OPSWAT’s AntiVirus SDK is a professional, extensive and complete software kit for developing AntiVirus integrations. With it's simple object-oriented interface, OPSWAT AntiVirus SDK provides a programmatic tool for controlling, managing, and checking the behavior of a wide variety of AntiVirus applications.

http://www.opswat.com/antivirussdk.html
0
All Courses

From novice to tech pro — start learning today.