# 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:

```json
{"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`.
