In my node.js app, I\'m using gm (a graphicsmagick wrapper) and aws2js (amazon cli wrapper). The problem is that Amazon needs to know the content-length so that I can put th
gm( fileStream ).filesize({bufferStream: true}, function (error, filesize) { this.stream(function (error, stdout, stderr) { aws.S3.putStream(path, stdout, 'public-read', {'content-length': filesize, 'content-type': 'image/png'}, function (error, result) { // ..... }); }); });