File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Java Products and Servers and the fly likes Java AntiVirus Scan for File Upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Java AntiVirus Scan for File Upload" Watch "Java AntiVirus Scan for File Upload" New topic
Author

Java AntiVirus Scan for File Upload

Anurag Pathak
Greenhorn

Joined: Jun 08, 2009
Posts: 22
Hi,

I uploading a file through java before that i need to undergo antivirus scan just like yahoo site.

Please guide me with some sample code how this can be achived.

Regards

Anurag
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You could just install an AV on the server, save the file to the server in a temp directory and catch the exeption if the AV prevents it.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Anurag Pathak
Greenhorn

Joined: Jun 08, 2009
Posts: 22
Hi,

Thanks for the reply but how I am going to pass the uploaded file name to antivirus exe.

The Antivirus Installed can be any Anti Virus .

Please Ellaborate with some sample code which will help me .

Thanks & Regards

Anurag
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java AntiVirus Scan for File Upload