4

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?

4

1 に答える 1

9

open最初にメソッドを呼び出す必要があります。

于 2012-11-04T14:20:47.373 に答える