![]() ![]() The Blob() constructor can create blobs from other objects. () Returns a promise that resolves with a USVString containing the entire contents of the Blob interpreted as UTF-8 text. () Returns a ReadableStream that can be used to read the contents of the Blob. () Returns a new Blob object containing the data in the specified range of bytes of the blob on which it's called. Instance methods () Returns a promise that resolves with an ArrayBuffer containing the entire contents of the Blob as binary data. ![]() If the type is unknown, this string is empty. Read only A string indicating the MIME type of the data contained in the Blob. ![]() Instance properties Read only The size, in bytes, of the data contained in the Blob object. Constructor Blob() Returns a newly created Blob object which contains a concatenation of all of the data in the array passed into the constructor. The APIs accepting Blob objects are also listed in the File documentation. To obtain a Blob object for a file on the user's file system, see the File documentation. To create a blob that contains a subset of another blob's data, use the slice() method. To construct a Blob from other non-blob objects and data, use the Blob() constructor. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. The Blob object represents a blob, which is a file-like object of immutable, raw data they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data.īlobs can represent data that isn't necessarily in a JavaScript-native format. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |