---
title: "LazyContent"
source: "https://github.com/remix-run/remix/blob/8905f3943706e1f53696ab83e70a84873cabfc90/packages/lazy-file/src/lib/lazy-file.ts#L6"
---

# LazyContent

## Summary

A streaming interface for blob/file content.

## Signature

```ts
interface LazyContent {
  byteLength: number
  stream(start: number, end: number): ReadableStream<Uint8Array<ArrayBuffer>>
}

```

## Properties

### `byteLength`

The total length of the content.

## Methods

### `stream(start: number, end: number): ReadableStream<Uint8Array<ArrayBuffer>>`

Returns a stream that can be used to read the content. When given, the `start` index is
inclusive indicating the index of the first byte to read. The `end` index is exclusive
indicating the index of the first byte not to read.

#### Parameters

##### `start`

The start index (inclusive)

##### `end`

The end index (exclusive)