Created
August 1, 2012 05:07
-
-
Save bigeasy/3223869 to your computer and use it in GitHub Desktop.
Decode XHR Send as UTF8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var file = new Buffer(fs.readFileSync('shapefile-filereader.zip', 'utf8'), 'binary'); | |
console.log(file.length) | |
fs.writeFileSync('out.zip', file); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See: http://javascript0.org/wiki/Portable_sendAsBinary