title: How do you virus scan a file being uploaded to your java webapp as it streams?
body: <p>Basically, I want to virus scan files as they are uploaded (before writing them to disk) to a web app. </p>
  
  <p>In particular, I'd like to integrate with "McAfee VirusScan Enterprise" (latest version).</p>
  
  <p>From a design and maintenance perspective, would it perhaps be better to scan certain paths at the firewall using a third party product? That way the web app would not have to concern itself with virus scanning. So as to minimize overhead, do typical virus scanning firewalls let you specify URL patterns as well as a particular POST data pattern. This of course would not work if it's an HTTPS site (unless there's some way around that).</p>
  
  <p><a href="https://stackoverflow.com/questions/908356/calling-the-mcafee-virus-scan-engine">This post from stackoverflow</a> seems to suggest that an SDK from McAfee is no longer available, but are there open source alternatives?</p>