Binary Store
The Binary Store component allows you to store binaries in the Content Store.
Select File, Payload, or Binary Stream mode and configure the corresponding source. The component stores only that source in MongoDB; incoming fields do not select the mode or override the settings.
See how it works:
Binary Store Explainer
note
Also covered in the Content Store overview video:
Watch video
Configuration
Inputs | Outputs
The configured mode and source expression determine which values are used. Stream references resolve dot-separated properties on the incoming object. There is no automatic priority or fallback between binary, path, and payload fields.
File mode reads the configured path. Payload mode stores the configured text. Binary Stream mode reads the stream referenced by the configured expression.
The resolved _id setting is used as the reference and filename in the Content Store. In Binary Stream mode, it must resolve to a non-empty value. In File and Payload modes, a blank value generates a reference by hashing the resolved file path or payload using SHA512. To use an incoming
Example: Using a stream Example: Using a file from the local file system: Example: Using a payload
File mode reads the configured path. Payload mode stores the configured text. Binary Stream mode reads the stream referenced by the configured expression.
The resolved _id setting is used as the reference and filename in the Content Store. In Binary Stream mode, it must resolve to a non-empty value. In File and Payload modes, a blank value generates a reference by hashing the resolved file path or payload using SHA512. To use an incoming
_id, explicitly set the _id setting to {{_id}}.Select Binary Stream mode, set Binary stream to {{binary}}, and set _id to {{_id}}.
{
"_id": "6232dea643dbbf33e0906e85",
"binary": // containing a readable stream
}
Select File mode and set File path to {{path}}.
{ "path": "C://Users/xillio/Downloads/test-file.json" }
Select Payload mode and set Payload to {{payload}}.
{ "payload": "test payload" }