s3Client for amazon web services on android -


i exploring using amazon web services storing user images viewed via android aplication.

problem amazon charge me $0.12 per gig of downloads of image. cost minimal if enable caching of image urls s3 url generator file urls requires experation date part of url. means wouldn't able cache requests.

is there way set s3client generate url doesn't require expiration data?

anyone have experience this?

i figured out.. no amazon's own documentatio scattered , out of date..

you can set permission public read so:

putobjectrequest por = new putobjectrequest(                         constants.getpicturebucket(), constants.picture_name,                         resolver.openinputstream(selectedimage),metadata);                 por.setcannedacl(cannedaccesscontrollist.publicread); 

then end getting normal url:

https://s3-us-west-2.amazonaws.com/[bucket]/[nameofthepicture]


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -