diff options
-rw-r--r-- | handler.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -7,7 +7,9 @@ const s3 = new AWS.S3(); module.exports.save = (event, context, callback) => { console.log(event.Records[0].kinesis); - fetch(event.image_url) + var url = new Buffer(event.Records[0].kinesis.data, 'base64').toString('utf8'); + console.log(url); + fetch(url) .then((response) => { if (response.ok) { return response; |