Blob

js.html.Blob (extern class) → File

A Blob object represents a file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.

Documentation Blob by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Instance Members

size: Int

The size, in bytes, of the data contained in the Blob object.


type: String

A string indicating the MIME type of the data contained in the Blob. If the type is unknown, this string is empty.


slice(?start: Int, ?end: Int, ?contentType: String): Blob

Returns a new Blob object containing the data in the specified range of bytes of the source Blob.

Name Type Default
start Int (optional)
end Int (optional)
contentType String (optional)
Returns
Blob

Name Type Default
blobParts Array<haxe.extern.EitherType<js.lib.ArrayBuffer, haxe.extern.EitherType<js.lib.ArrayBufferView, haxe.extern.EitherType<Blob, String>>>> (optional)
options Null<BlobPropertyBag> (optional)