Definition
File API defines Blob
[Exposed=(Window,Worker), Serializable]
interface Blob {
constructor(optional sequence<BlobPart> blobParts,
optional BlobPropertyBag options = {});
readonly attribute unsigned long long size;
readonly attribute DOMString type;
// slice Blob into byte-ranged chunks
Blob slice(optional [Clamp] long long start,
optional [Clamp] long long end,
optional DOMString contentType);
// read from the Blob.
[NewObject] ReadableStream stream();
[NewObject] Promise<USVString> text();
[NewObject] Promise<ArrayBuffer> arrayBuffer();
[NewObject] Promise<Uint8Array> bytes();
};
Methods and attributes that return objects implementing Blob
Referring IDL interfaces/dictionaries
Referring specifications
- Fetch Standard refers to
Blob
- File System Standard refers to
Blob
- HTML Standard refers to
Blob
- Extending Storage Access API (SAA) to non-cookie storage refers to
Blob
- WebSockets Standard refers to
Blob
- Local Font Access API refers to
Blob
- Clipboard API and events refers to
Blob
- Contact Picker API refers to
Blob
- MediaStream Image Capture refers to
Blob
- MediaStream Recording refers to
Blob
- Presentation API refers to
Blob
- Push API refers to
Blob
- WebRTC: Real-Time Communication in Browsers refers to
Blob
- XMLHttpRequest Standard refers to
Blob