> ## Documentation Index
> Fetch the complete documentation index at: https://docs-old.tilebox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Client.read_bytes

```python theme={"system"}
async def Client.read_bytes(
    asset: Asset,
    *,
    max_bytes: int | None = None,
) -> bytes
```

Read an entire asset into memory.

## Parameters

**asset** `Asset`

The asset to resolve and read.

**max\_bytes** `int | None`

An optional maximum accepted object size in bytes.

## Returns

The complete object contents as `bytes`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.