---
title: "StreamBytes"
version: "0.9.0"
url: "https://docs.laminapdf.com/reference/sdk/interfaces/streambytes/"
---

# StreamBytes

Defined in: [packages/sdk/src/types.ts:1975](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/types.ts#L1975)

The first bytes of a stream ([Document.streamBytes](/reference/sdk/classes/document.md#streambytes)) and its whole length in that view.

## Since

0.6.0

## Properties

### bytes

```ts
readonly bytes: Uint8Array<ArrayBuffer>;
```

Defined in: [packages/sdk/src/types.ts:1977](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/types.ts#L1977)

At most the bytes asked for, from the start.

***

### total?

```ts
readonly total?: number;
```

Defined in: [packages/sdk/src/types.ts:1982](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/types.ts#L1982)

The stream's whole length in this view, in bytes; absent for a decoded stream longer than
the bytes asked for, which is decoded no further.
