2

I'm using .overrideMimeType('text/plain; charset=x-user-defined'); on my XMLHttpRequest object to load a binary datafile into javascript. I'm able to get the data byte by byte with data.charCodeAt(pos) & 0xff;

This works great in FF and Chrome (The two browsers I've tested so far). I've not yet tested Safari - but I would guess that it will work. Everything I've read is that IE (including 9) and Opera do not support this.

For IE is there any alternative I can use? An ActiveX control possibly? Is there an alternative in Opera that I can use?

PeeHaa
  • 69,318
  • 57
  • 185
  • 258
Justin808
  • 20,019
  • 44
  • 152
  • 253
  • 1
    "Everything I've read is that IE (including 9) and Opera do not support this." Did you actually test it? – Kevin May 27 '11 at 19:21

1 Answers1

1

I had to use some VBScript to get it to work.

See how do I access XHR responseBody (for binary data) from Javascript in IE?

Community
  • 1
  • 1
Cheeso
  • 184,848
  • 97
  • 460
  • 704