Skip to content

Instantly share code, notes, and snippets.

@bigeasy
Created August 1, 2012 05:07
Show Gist options
  • Save bigeasy/3223869 to your computer and use it in GitHub Desktop.
Save bigeasy/3223869 to your computer and use it in GitHub Desktop.
Decode XHR Send as UTF8
var fs = require('fs');
var file = new Buffer(fs.readFileSync('shapefile-filereader.zip', 'utf8'), 'binary');
console.log(file.length)
fs.writeFileSync('out.zip', file);
@bigeasy
Copy link
Author

bigeasy commented Aug 1, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment