---
title: LazyContent
source: https://github.com/remix-run/remix/blob/remix@3.0.0-beta.3/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)