Answers for "convert base64 to uint8array javascript"

0

convert base64 to uint8array javascript

function _base64ToArrayBuffer(base64) {
    var binary_string = window.atob(base64);
    var len = binary_string.length;
    var bytes = new Uint8Array(len);
    for (var i = 0; i < len; i++) {
        bytes[i] = binary_string.charCodeAt(i);
    }
    return bytes.buffer;
}
Posted by: Guest on May-06-2020

Code answers related to "convert base64 to uint8array javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language