Virus scan an uploaded file

How to use servlets to scan an uploaded file for viruses?
[64 byte] By [jitendravedia] at [2007-10-2 17:14:45]
# 1

Step 1: decide what virus-scanning product you want to use.

Step 2: find out what kind of API they provide for on-demand scanning.

Have you done these steps yet? No? Because your question is really

Step 3: find out how to use that API in a servlet.

So if you are still having trouble with Step 3, after having done Steps 1 and 2, then let us know. With details about what you found out in Step 2, of course.

DrClapa at 2007-7-13 18:30:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Solution will depend on how you would like to scan.

1. In real time with a user notification and ask for re-upload

2. In real time with a user notification and automatic virus removing

3. Later batch scan with e-mailing to a user about found problem and asking to re-upload

4. Later batch scan with automatic virus removing

We use 4th approach since it less bothers a user and doesn't require API for calling scanning software. It provides also extra benefits, like what if virus get to upload on server side?

dmitryra at 2007-7-13 18:30:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
HiCould you pl. provide us the API in java if available?We prefer to go via Step4 specified. Pl. provide us the steps to do the same.If possible, post a sample code.
esskaybeea at 2007-7-13 18:30:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Hi, Have you found out the solution? If so, could you share some information and sample code? Thanks.
GraceZhenga at 2007-7-13 18:30:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
I'll repeat DrClap as it looks like nobody is reading it:Step 1: decide what virus-scanning product you want to use.Step 2: find out what kind of API they provide for on-demand scanning.Once you know it, then we can proceed with Java coding.
BalusCa at 2007-7-13 18:30:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...