AVapps / FileReader

A FileReader polyfill for Internet Explore and Safari using Flash
192 stars 61 forks source link

readAsBinaryString() doesn't work #37

Open glebm opened 11 years ago

glebm commented 11 years ago

readAsBinaryString() returns this for an example jpeg file:

"X`"
glebm commented 11 years ago

GitHub munged the result, here is the real thing: result

huampoyotl commented 11 years ago

Did you get it work @glebm ?

glebm commented 11 years ago

No, I ended up using https://github.com/moxiecode/moxie

huijar commented 11 years ago

@glebm, did you manage to get it working without plupload? The documentation claims it's possible to use moxie as an independent polyfill, but falls short on instructions. Could you give an example?

glebm commented 11 years ago

@huijar Yes, I did, although it was a bit of hassle. Basically moxie exposes identical APIs to the HTML5 ones, but in moxie namespace (e.g. new moxie.file.FileReader()), and also provides utility classes such as moxie.file.FileInput.