Contents

Read Media

read_media · Nodes · Data

Reads stored media content into the workflow.

Read Media#

Reads bytes for a stored object.

Input#

  • input: an object descriptor, { object_id }, an object id string, a public object URL, or { url } containing one.

A public URL resolves through stored object metadata. This node does not fetch arbitrary URLs.

Config#

  • output_format: binary or base64. Default: binary.

Output#

  • Binary mode (output_format = binary) returns:

    • output.media: the object descriptor.
    • output.binary: NodeData::Binary runtime binary data.
  • Base64 mode (output_format = base64) returns:

    • output.media: the object descriptor.
    • output.base64: base64 string.

output.media is the same descriptor Upload Media emits: object_id, kind, content_type, filename, size_bytes, public_url, and kind-specific metadata.

output.binary is runtime binary data. It is not base64 and is not JSON.

Binary outputs are shown in public/agent previews as redacted metadata:

{"bytes":"<binary>","mime_type":"image/png","filename":"image.png","size_bytes":12345}

bytes: "<binary>" is a placeholder, not byte content or base64. Do not copy preview JSON into workflow configs or test inputs; it cannot be replayed. Feed binary forward by connecting the read_media output socket to the next node and interpolating the runtime field, for example {{read_media.output.binary}}.

If you need base64 JSON, set output_format = "base64" and use output.base64.

Inputs

  • inputRequired

Outputs

  • output

Configuration

FieldTypeRequiredDescription
output_formatenum(binary, base64)NoReturned byte representation
base_configrecordNoShared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow).