Failed to execute ‘createObjectURL’ on ‘URL’:
I experienced the same error, when I passed raw data to createObjectURL: window.URL.createObjectURL(data) It has to be a Blob, File or MediaSource object, not data itself. This worked for me: var binaryData = []; binaryData.push(data); window.URL.createObjectURL(new Blob(binaryData, {type: “application/zip”})) Check also the MDN for more info: https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL UPDATE Back in the day we could also … Read more