I wrote some code last week to scan files against the ClamAV antivirus scanner using the clamd daemon. It's up now on Google Code under the Apache 2.0 license.
I wrote some code last week to scan files against the ClamAV antivirus scanner using the clamd daemon. It's up now on Google Code under the Apache 2.0 license.
One Comment
Passing 0-size byte array to scan(byte[] in) fails. Easy to fix, though:
* now *
try {
read = in.read(buffer);
}
* should be *
try {
read = in.read(buffer);
if (read == -1) {
break;
}
}
Post a Comment