blob
Blob
stands for Binary Large Object
.
Subtypes of blob
like AudioBlob
is a Blob
that contains audio data.
audio/mpeg
, audio/wav
, etc.What is a high level object?
size
and type
(MIME type).blob
characteristicsBlob
s are immutable, you need to slice or create a new Blob
to change its content.
Blob
s are treated like a file.
URL
for it and pass it around.Because Blob
is an encapsulated object, you can't directly access the bytes.
myAudioBlob.arrayBuffer().then(arrayBuffer => { // 'arrayBuffer' holds the raw buffered bytes of the audio data. // You can create a TypedArray to work with the buffered bytes. const uint8Array = new Uint8Array(arrayBuffer); });