Knox S3 モジュールを使用していますが、最終的にファイルを取得すると、結果のファイルが破損しています。Knox の使い方は間違っていますか?
var data;
client.getFile(path, function(err, file) {
file.on('data', function(chunk) { data += chunk; });
file.on('end', function() {
//Here I end up sending the response with new Buffer(data), but that produces a bad file.
});
});