This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
BlobBuilder interface provides an easy way to construct
Blob objects. Just create a
BlobBuilder and append chunks of data to it by calling the
append() method. When you're done building your blob, call
getBlob() to retrieve a
Blob containing the data you sent into the blob builder.
BlobBuilderinterface has been deprecated in favor of the newly introduced
Blob being built. If the value you specify isn't a
String, the value is coerced to a string before being appended to the blob.
void append( in ArrayBuffer data ); void append( in Blob data ); void append( in String data, [optional] in String endings );
\nare to be written out. This can be
"transparent"(endings unchanged) or
"native"(endings changed to match host OS filesystem convention). The default value is
Blob getBlob( in DOMString contentType Optional );
Blob. This will be the value of the
Blobobject's type property.
Blob object containing all of the data passed to any calls to
append() made since the
BlobBuilder was created. This also resets the
BlobBuilder so that the next call to
append() is starting a new, empty blob.
File getFile( in DOMString name, [optional] in DOMString contentType );
File. This will be the value of the
Fileobject's type property.
|Basic support|| 8
||Yes||? — 18
|Android webview||Chrome for Android||Edge Mobile||Firefox for Android||Opera for Android||iOS Safari||Samsung Internet|
|Basic support|| 3
||?||Yes||? — 18
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.