Build multipart request bodies as binary objects for use with KNIME REST nodes.
This component builds a valid multipart/form-data request body as a binary object, ready to be sent with KNIME’s native REST nodes.
Since REST nodes in KNIME currently do not support multipart requests directly, this component fills the gap without requiring any scripting.
To craft the request body, you need a table with the following columns (the column names can be arbitrary, as you select them in the configuration dialog):
Content → the request payload reference. This column must be of type String. The value can be:
a plain string (e.g., "Hello world")
a KNIME workflow data link (knime://...) pointing to data stored in the workflow
a local file path (e.g., C://...)
Content Type → the MIME type of the payload. Supported values include:
application/json
text/plain
text/html
text/csv
image/svg+xml
application/pdf
application/zip
application/octet-stream
image/png
Field Name → the form field name required by your target API.
Filename (optional) → only needed if the API expects a filename (for file uploads).
In addition, the Multipart Content-Type is configurable in the dialog. It defaults to multipart/form-data, but you can also set a different multipart type if required by your API.
If an unsupported MIME type is provided, the component will fail with an error.