display images fetched from s3
问题 I want to fetch images from s3 and display them on my HTML page. Angular HTML file: <section data-ng-controller="myCtrl"> <img ng-src="{{src}}" width="200px" height="200px"> </section> Angular Controller file: angular.module('users').controller('myCtrl', ['$scope',function($scope) { var s3 = new AWS.S3(); s3.getObject({Bucket: 'mybucket', Key: 'myimage.jpg'},function(err,file){ //code?? to display this image file in the img tag //$scope.src=file????....obviously it wont work }); }]); I found