amazon web services - IOS Download Images From AWS S3 -


i uploading images ios app aws s3.

in order display images uploaded s3 use methods of docs

// construct nsurl download location. nsstring *downloadingfilepath = [nstemporarydirectory() stringbyappendingpathcomponent:@"downloaded-myimage.jpg"]; nsurl *downloadingfileurl = [nsurl fileurlwithpath:downloadingfilepath];  // construct download request. awss3transfermanagerdownloadrequest *downloadrequest = [awss3transfermanagerdownloadrequest new];  downloadrequest.bucket = @"mybucket"; downloadrequest.key = @"myimage.jpg"; downloadrequest.downloadingfileurl = downloadingfileurl; 

and download image method

[[transfermanager download:downloadrequest] continuewithexecutor:[bfexecutor mainthreadexecutor]                                                    withblock:^id(bftask *task) 

i concerned download location : there memory issues if many images downloaded?

if has been using framework, there caching capabilities set manually? there advantage of using framework sdwebimage display images?

the aws mobile sdk ios not provide caching. need manage files downloaded amazon s3 buckets yourself. when suit use case, cashing frameworks can manage downloaded files.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -