Optionaloptions: FileOptionsReadonlylastThe last modified date of the File.
ReadonlynameThe name of the File.
ReadonlysizeThe total size of the Blob in bytes.
ReadonlytypeThe content-type of the Blob.
Returns a promise that fulfills with an ArrayBuffer containing a copy of
the Blob data.
The blob.bytes() method returns the byte of the Blob object as a Promise<Uint8Array>.
const blob = new Blob(['hello']);
blob.bytes().then((bytes) => {
console.log(bytes); // Outputs: Uint8Array(5) [ 104, 101, 108, 108, 111 ]
});
Creates and returns a new Blob containing a subset of this Blob objects
data. The original Blob is not altered.
Optionalstart: numberThe starting index.
Optionalend: numberThe ending index.
Optionaltype: stringThe content-type for the new Blob
Returns a new ReadableStream that allows the content of the Blob to be read.
A
Fileprovides information about files.Since
v19.2.0, v18.13.0