ie11 Downloading Base64 documents : <p>I have tried pretty much everything at this point and I cannot get anything to work in ie. </p>

<p>I need ie to download base64 documents from an attachment panel. I have no access to the server side code or database. The images cannot be stored in a folder to be pulled up, they need to be presented this way.</p>

<p>I have tried using a plain link and sticking the base64 sting in there and it just opens up a new blank window. </p>

<pre><code>&lt;a target="_blank" download class="btn btn-primary downloadAttachment" href="' + blobUrl + '" &gt;Download&lt;/a&gt;
</code></pre>

<p>I have tried turning the url into a <code>blob</code> and opening the blob and that resulted in the browser not doing anything. </p>

<pre><code>function base64toBlob(base64Data, contentType) {
    contentType = contentType || '';
    var sliceSize = 1024;
    var byteCharacters = base64Data;
    var bytesLength = byteCharacters.length;
    var slicesCount = Math.ceil(bytesLength / sliceSize);
    var byteArrays = new Array(slicesCount);

    for (var sliceIndex = 0; sliceIndex &lt; slicesCount; ++sliceIndex) {
        var begin = sliceIndex * sliceSize;
        var end = Math.min(begin + sliceSize, bytesLength);

        var bytes = new Array(end - begin);
        for (var offset = begin, i = 0 ; offset &lt; end; ++i, ++offset) {
            bytes[i] = byteCharacters[offset].charCodeAt(0);
        }
        byteArrays[sliceIndex] = new Uint8Array(bytes);
    }
    return new Blob(byteArrays, { type: contentType });
}
</code></pre>

<p>I am completely and totally stuck. I have tried everything from google and on here.</p>

<p>My two latest attempts here</p>

<p><a href="https://jsfiddle.net/pqhdce2L/" rel="noreferrer">https://jsfiddle.net/pqhdce2L/</a></p>

<p><a href="http://jsfiddle.net/VB59f/464/" rel="noreferrer">http://jsfiddle.net/VB59f/464/</a></p>
