FileReader icon indicating copy to clipboard operation
FileReader copied to clipboard

readAsBinaryString() doesn't work

Open glebm opened this issue 11 years ago • 5 comments

readAsBinaryString() returns this for an example jpeg file:

"X`"

glebm avatar Apr 05 '13 16:04 glebm

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

glebm avatar Apr 05 '13 16:04 glebm

Did you get it work @glebm ?

huampoyotl avatar May 02 '13 23:05 huampoyotl

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

glebm avatar May 03 '13 07:05 glebm

@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?

huijar avatar May 07 '13 16:05 huijar

@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.

glebm avatar May 07 '13 16:05 glebm