showing an image from amazon s3 with nodejs, expressjs and knox
I think this should be a straight forward thing, but I can't fing a solution :s I'm trying to figure out the best way to show images stored on amazon S3 on a website. Currently I'm trying to get this to work (unsuccessful) //app.js app.get('/test', function (req, res) { var file = fs.createWriteStream('slash-s3.jpg'); client.getFile('guitarists/cAtiPkr.jpg', function(err, res) { res.on('data', function(data) { file.write(data); }); res.on('end', function(chunk) { file.end(); }); }); }); //index.html <img src="/test" /> Isn't it maybe possible to show the images directly from amazon ? I mean,