Blob class provides several methods for consuming its contents in different formats. Use .bytes() to read the contents as a Uint8Array.
ArrayBuffer with .arrayBuffer(), then create a Uint8Array from the buffer.
See Binary Data.
Blob class provides several methods for consuming its contents in different formats. Use .bytes() to read the contents as a Uint8Array.
ArrayBuffer with .arrayBuffer(), then create a Uint8Array from the buffer.