dataURLToBlob function
Converts a dataURL
to a Blob.
Implementation
Blob dataURLToBlob(DataURLBase64 dataURL) {
var mimeType = dataURL.mimeTypeAsString;
var buffer = dataURL.payloadArrayBuffer;
return Blob([buffer], mimeType);
}
Converts a dataURL
to a Blob.
Blob dataURLToBlob(DataURLBase64 dataURL) {
var mimeType = dataURL.mimeTypeAsString;
var buffer = dataURL.payloadArrayBuffer;
return Blob([buffer], mimeType);
}