In browser console generate data URI for any file.

Code Snippets 4 U
fetch("https://dl.dropboxusercontent.com/s/e93zujp4q0k05vm/t.ogg").then(res => res.blob()).then(blog => {
    function blogToDataURL(blob, callback) {
        var a = new FileReader();
        a.onload = function(e) {
            callback(e.target.result)
        };
        a.readAsDataURL(blob);
    }
    blogToDataURL(blog, function(dataurl) {
        console.log(dataurl)
    })
})

Leave a Reply

Your email address will not be published. Required fields are marked *

thirty three − = twenty seven