I'm trying to download some binary data from my Firefox extension. When I try to set a created XMLHttpRequest to arraybuffer mode:
oHTTP = new XMLHttpRequest();
oHTTP.responseType = "arraybuffer";
The error
InvalidStateErr
An attempt was made to use an object that is not, or is no longer, usable
is thrown.
Is there another way to download binary data in a Firefox extension?
You must call the open
method first.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With