This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic