Blob.prototype.arrayBufferSync

Returns an ArrayBuffer containing the entire contents of the blob as binary data.

Note

This is a non-standard method specific to Calcish.

Syntax

arrayBufferSync()

Return value

An ArrayBuffer.

If the contents of blob doesn’t fit in an ArrayBuffer, throws a RangeError.

Example

let blob = new Blob(['Hello, world!'])
blob.arrayBufferSync().byteLength
13

See also