Displaying binary file (pdf) in IE 11 Displaying binary file (pdf) in IE 11 angularjs angularjs

Displaying binary file (pdf) in IE 11


IE 11 blocks display of blob, you need to use the following:

                    var byteArray = new Uint8Array(someByteArray);                var blob = new Blob([byteArray], { type: 'application/pdf' });                if (window.navigator && window.navigator.msSaveOrOpenBlob) {                    window.navigator.msSaveOrOpenBlob(blob);                }                else {                    var objectUrl = URL.createObjectURL(blob);                    window.open(objectUrl);                }