Download File from Bytes in JavaScript
I asked the question long time ago, so I might be wrong in some details. It turns out that Blob needs array buffers. That’s why base64 bytes need to be converted to array buffers first. Here is the function to do that: function base64ToArrayBuffer(base64) { var binaryString = window.atob(base64); var binaryLen = binaryString.length; var bytes … Read more