RuntimePackage ManagerBundlerTest RunnerLinterFormatterGuidesReferenceBlogFeedback

Convert a Blob to an ArrayBuffer

The Blob class provides several methods for consuming its contents in different formats, including .arrayBuffer().

TypeScript
const blob = new Blob(["hello world"]);
const buf = await blob.arrayBuffer();

See Binary Data.