Home > OS >  Can't Create a Javascript Blob
Can't Create a Javascript Blob

Time:09-30

I am trying to do a download using a Javascript Blob. Creating the Blob is failing silently. As an example,

var blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"});

If I surround it in a try catch block and do an alert on the error name and message, I get TypeError that 'Blob' is undefined. We are running pretty old JavaScript and I am wondering if I need a specific JavaScript version to support Blob. I cant seem to find any info on Blob version support.

CodePudding user response:

I was able to download the file using the Blob if I took Edge out of Internet Explorer mode. That leads me to believe that Javascript Blog is not supported in I.E. mode. (Not good news for the legacy app I support...). Thank You one and all for your answers !

  • Related