【发布时间】:2013-01-13 21:46:25
【问题描述】:
我正在使用 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.
});
});
【问题讨论】:
标签: node.js amazon-web-services knox-amazon-s3-client