Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to display image from s3 bucket in react js

var params = {Bucket: 'xxx-xx-xxx', Key: '1.jpg'};
var promise = s3.getSignedUrlPromise('getObject', params);
promise.then(function(url) {
  res.send(url)
}, function(err) { console.log(err) });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #display #image #bucket #react #js
ADD COMMENT
Topic
Name
3+2 =