InvalidStateError in internet explorer 11 during blob creation

前端 未结 4 1044
灰色年华
灰色年华 2020-12-19 07:36

I\'m getting an InvalidStateError at the blob creation line on IE 11. Needless to say, it works in Chrome and Firefox. I can see that the binary data is my cli

4条回答
  •  春和景丽
    2020-12-19 07:58

    Spent some time on this and actually found out adding new Uint8Array works:

    var blob = new Blob([new Uint8Array(request.response)], {type: 'application/pdf'});

提交回复
热议问题