File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java AntiVirus Scan for File Upload

 
Anurag Pathak
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Anurag Pathak
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic