ios - How to take Permissions to retrive uploadimage through url in S3bucket -


i uploaded image s3 bucket , requirement display uploaded image through url in uiimageview.

when browsing url image displaying when using url in following code, url printing in console. when converting url in data contains nil value.

i tried following code. can 1 tell me if problem permissions in s3 bucket or coding?

let url = nsurl(string: imageurl) let responsedata = nsdata(contentsofurl: url!,options: nil,error:nil) print("the data \(responsedata)") changeimgvc.image = uiimage(data:responsedataenter!) 

you need change policy of bucket in aws s3 console: - http://www.jppinto.com/2011/12/access-denied-to-file-amazon-s3-bucket/ - http://awspolicygen.s3.amazonaws.com/policygen.html - add bucket>properties>permissions>bucket policy


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -