---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/storage/opfs/interfaces/OpfsBlob.md
description: >-
  Minimal subset of the DOM `Blob` interface used by [`OpfsSpoolReader`](https://adk.nht.io/api/@nhtio/adk/batteries/storage/opfs/classes/OpfsSpoolReader)
  streaming-mode random-access reads. Real OPFS handles return a `File` here; we
  narrow to the methods we actually call.
---

# Interface: OpfsBlob

Defined in: [batteries/storage/opfs/index.ts:101](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/batteries/storage/opfs/index.ts#L101)

Minimal subset of the DOM `Blob` interface used by [OpfsSpoolReader](../classes/OpfsSpoolReader.md) streaming-mode
random-access reads. Real OPFS handles return a `File` here; we narrow to the methods we
actually call.

## Extended by

* [`OpfsFile`](OpfsFile.md)

## Properties

| Property                          | Modifier   | Type     | Defined in                                                                                                                      |
| --------------------------------- | ---------- | -------- | ------------------------------------------------------------------------------------------------------------------------------- |
|  `size` | `readonly` | `number` | [batteries/storage/opfs/index.ts:102](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/batteries/storage/opfs/index.ts#L102) |

## Methods

### slice()

```ts
slice(
   start?: number,
   end?: number,
   contentType?: string): OpfsBlob;
```

Defined in: [batteries/storage/opfs/index.ts:103](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/batteries/storage/opfs/index.ts#L103)

#### Parameters

| Parameter      | Type     |
| -------------- | -------- |
| `start?`       | `number` |
| `end?`         | `number` |
| `contentType?` | `string` |

#### Returns

`OpfsBlob`

***

### stream()

```ts
stream(): OpfsReadableStream;
```

Defined in: [batteries/storage/opfs/index.ts:105](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/batteries/storage/opfs/index.ts#L105)

#### Returns

[`OpfsReadableStream`](OpfsReadableStream.md)

***

### text()

```ts
text(): Promise<string>;
```

Defined in: [batteries/storage/opfs/index.ts:104](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/batteries/storage/opfs/index.ts#L104)

#### Returns

`Promise`<`string`>
