[clamav-users] Scanning a large file through HTTP

Saurav Sarkar saurav.sarkar1 at gmail.com
Wed Apr 7 14:38:37 UTC 2021


Hi All,

We are using a HTTP enabled malware scanning service based on Clam AV.

The service is made something like this
https://github.com/solita/clamav-rest

We have files like CAD files which can go in GBs and want to send to this
malware scanning service.

Is there a possibility to send the file in chunks and get it scanned in the
server side in chunks.

I observed that there is a INSTREAM command in clamd for this purpose and
also there is a 4GB size limit.
https://linux.die.net/man/8/clamd


Read somewhere the full file size is mapped to memory. Is it the case for
INSTREAM command also ?

If it is the case then even if chunking is supported then the server side
must have at least 4GB of memory.

Best Regards,
Saurav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20210407/c74c16e1/attachment.htm>


More information about the clamav-users mailing list