Scan Content
AI-generatedSummary
Scan arbitrary in-memory content for viruses using a ClamAV clamd daemon's INSTREAM command, supporting content encoded as base64, UTF-8 string, or supplied as binary data from an n8n binary property.
Inputs
- Content Encoding (required) — Specifies how the content to scan is encoded: base64 string, UTF-8 string, or an n8n binary property containing raw bytes.
- Content (required) — The content to scan, provided as a base64 or UTF-8 string, according to the selected encoding.
- Binary Property Name (required) — The name of the binary property in the input item which holds the file bytes to scan when using 'n8n Binary Field' encoding.
- Options — Optional parameters including TCP connection timeout in milliseconds and whether to continue execution on failure (continueOnFail).
Output shape
a list of JSON items each containing the scan operation result as a structured object with fields: operation, path (always 'stream'), status (OK, FOUND, or ERROR), virus name if found, error message if any, and raw protocol response string.
The scan result JSON structure follows ClamAV's response format parsed by the node. If an error occurs and 'continueOnFail' is enabled, the output includes an error message per failed item. The node requires valid ClamAV credentials configured separately.