TTImageView with urlPath from Amazon S3

216 views Asked by At

I get error when loading images from a urlPath that comes from S3 Amazon, is this a problem with three20?

I get the urlPath by the way from a web service..

the web service has a script that checks something from me then returns the image of my request if i'm a valid user.. (something to do for security)

when I manually load the image url path i receive from my web service in a web browser, it loads normally, but why wont it load in the TTImageView?

2

There are 2 answers

12
Geoff Appleford On

Is your bucket new? New EU buckets (not sure about US) redirect urls to S3-external-3.amazonaws.com until the dns settings are properly setup.

Perhaps TTImageView is not following the redirect.

2
aporat On

I use the TTImageView with images loaded directly from amazon S3 and I haven't had any issues with it.

I use the S3 domain mapping feature amazon offer, so the images URLs have my domain address in them (http://assets.domainname.com/image.jpeg).

Tutorial : http://www.brangle.com/wordpress/2010/11/mapping-amazon-aws-s3-to-a-custom-domain-name/