> ## 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.

# 将 Node.js Readable 转换为 Blob

要在 Bun 中将 Node.js `Readable` 流转换为 [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob)，请创建一个以该流为正文的 [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response)，然后调用 [`response.blob()`](https://developer.mozilla.org/en-US/docs/Web/API/Response/blob)。

```ts theme={null}
import { Readable } from "stream";
const stream = Readable.from(["Hello, ", "world!"]);
const blob = await new Response(stream).blob();
```
