Bun.readableStreamToArrayBuffer reads the contents of a ReadableStream into an ArrayBuffer.
const stream = new ReadableStream();
const buf = await Bun.readableStreamToArrayBuffer(stream);
Runtime docs · Guides · Streams
Bun.readableStreamToArrayBuffer reads the contents of a ReadableStream into an ArrayBuffer.
const stream = new ReadableStream();
const buf = await Bun.readableStreamToArrayBuffer(stream);