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

# 将 Uint8Array 转换为 Blob

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

```ts theme={null}
const arr = new Uint8Array([0x68, 0x65, 0x6c, 0x6c, 0x6f]);
const blob = new Blob([arr]);
console.log(await blob.text());
// => "hello"
```

***

参见 [二进制数据](/runtime/binary-data#conversion)。
