Skip to main content

Convert a Buffer to a blob

还没翻译译自英文(bun.com)本页 3 段都还没译

You can construct a Blob from an array of "chunks", where each chunk is a string, binary data structure (including Buffer), or another Blob.

const buf = Buffer.from("hello");
const blob = new Blob([buf]);

See Binary Data.

翻訳 © 2026 fanyi.dev · 原文 © 2026 the Bun project (LICENSE.md names no copyright holder) (MIT)