AphrodyBun GitHub

Runtime docs · Guides · Binary Data

Convert a Buffer to a blob

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.