Stuk/jszip — Issue #6: Binary data
Author: dpup
Created: 2011-10-15 01:04:09+00:00
State: open

Couldn't think of a better place to post this.

Your example has a note about getting this to work with binary data retrieved via XHR. You can get it to work using something like so:

```xhr.open('GET', imageUrl);
xhr.overrideMimeType('text/plain; charset=x-user-defined');
xhr.send(null);```

Then process the data:

```var data = xhr.responseText;
var bytes = [];
for (var i = 0; i < data.length; i++) {
bytes.push(String.fromCharCode(data.charCodeAt(i) & 0xff));
}```

Great little library btw, super useful.