Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java AntiVirus Scan for File Upload

 
Anurag Pathak
Greenhorn
Posts: 23
  • 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
  • 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
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic