base64toblob
v0.0.2
Published
Base64 to Blob object
Downloads
4,723
Readme
base64ToBlob
Convert a base64 string to a Blob object.
Demo
https://lab.miguelmota.com/base64toblob
Install
bower install base64toblob
npm install base64toblob
Usage
var base64 = 'iVBORw0...ASUVORK5CYII=';
var blob = base64ToBlob(base64, 'image/png');
var url = window.URL.createObjectURL(blob);
console.log(url); // blob:http%3A//localhost%3A8888/2c6321f4-8f4e-457f-8b4e-2c3932b4bef0
License
MIT