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