I\'m trying to send binary data to an express app. It works fine, as long as my values are smaller than 0x80. If a single value is 0x80 or greater, it messes up the whole b
It turned out to be an encoding issue. Everything seems to default to 'utf8', but in this case it needs to be set to 'binary'.
For example:
var buf = new Buffer(body.toString('binary'),'binary');
Equally as important, I needed to set nodejs multiparty parser's encoding to 'binary'. See: https://github.com/superjoe30/node-multiparty/issues/37