Docs

base64.decodeDataURL

Decodes a Base64-encoded Data URL string and returns the Blob.

Syntax

decodeDataURL(string)

Parameters

Return value

A Blob with decoded bytes and type.

Throws an error if the string is not a valid base64 Data URL string.

Example

base64.decodeDataURL("data:image/gif;base64,R0lGODdhEAALAKIAAAAAALkAHACPAP///wAAAAAAAAAAAAAAACH5BAkAAAQALAAAAAAQAAsAAAMfSBqs2+6FyGYklcLLu/9gJAghMY4laoKkeL6qC59OAgA7")
Blob (90 bytes)