> ## Documentation Index
> Fetch the complete documentation index at: https://bun.ll1025.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 将 ReadableStream 转换为 Blob

`Bun.readableStreamToBlob` 读取 [`ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream) 的内容到一个 `Blob` 中。

```ts theme={null}
const stream = new ReadableStream();
const blob = await Bun.readableStreamToBlob(stream);
```

***

参见 [Bun 的其他 `ReadableStream` 转换函数](/runtime/utils#bun-readablestreamto)。
