Download Blob from webworker in IE11

2019-08-02 23:45发布

问题:

I m trying to download a large blob from a web worker.

With Firefox and Chrome it's quite simple:

url = URL.createObjectURL(oMyBlob);
//Then i return the url to the main thread and go to it

But according to this thread IE doesn't allow that, and we must use this:

navigator.msSaveBlob(blob, defaultName);

But navigator seems to not have access to msSaveBlob within a webworker...

What's the best way then to download a Blob (~100MB) within an IE11 worker?