base64toblob

Base64 to Blob object

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
base64toblob
0.0.25 years ago8 years agoMinified + gzip package size for base64toblob in KB

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