Converts a Base64 encoded string to a Blob object.
The Base64 encoded string. Pass the data only, not a data: URL.
data:
The MIME content type of the data.
The size of the slices to process.
The Blob object containing the decoded data.
If b64Data is not valid Base64.
b64Data
const b64String = 'iVBORw0KGgo...';const contentType = 'image/png';const blob = base64ToBlob(b64String, contentType); Copy
const b64String = 'iVBORw0KGgo...';const contentType = 'image/png';const blob = base64ToBlob(b64String, contentType);
Converts a Base64 encoded string to a Blob object.