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

# 将 Buffer 转换为 Blob

一个 [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) 可以由一组“块”数组构造，每个块可以是字符串、二进制数据结构（包括 `Buffer`）、或者另一个 `Blob`。

```ts theme={"theme":{"light":"github-light","dark":"dracula"}}
const buf = Buffer.from("hello");
const blob = new Blob([buf]);
```

***

完整的二进制数据操作文档请参见 [文档 > API > 二进制数据](/runtime/binary-data#conversion)。
