AWS的iOS SDK和CloudFront的 - 访问图像 [英] iOS AWS SDK and CloudFront - accessing images

查看:143
本文介绍了AWS的iOS SDK和CloudFront的 - 访问图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉,如果这听起来小有一点混乱(我试图打通CloudFront的文件),但我有一个应用程序本质上是下载从S3一堆图像。我试图建立一个新的CloudFront的分布,指出产地到我的S3存储桶,不知道这将如何改变我进入我的图片在我的应用程序的方式。该应用程序查询SimpleDB中找出得到什么,并使用S3GetObjectRequest下载图像。

Sorry if this sounds alittle confusing (I am trying to get through the CloudFront documentation) but I have an app that is essentially downloading a bunch of images from S3. I tried to setup a new CloudFront distribution, pointed the origin to my S3 bucket and wondering how will this change the way I access my images in my app. The app queries simpleDB to find out what to get and uses S3GetObjectRequest to download the images.

我必须使用不同的路径来访问图像CloudFront的或如何工作的呢?

Do I have to use a different path to access images for CloudFront or how does this work?

推荐答案

是的,你需要使用的桶名称的CloudFront的分布名代替。因为这可能是一个下载分布,分布的名称通常与'd'和启动。 一般情况下,完整路径CloudFront的分布如下: http://dxxxxxxx.cloudfront.net

Yes, you need to use the cloudfront distribution name instead of the bucket name. Since this is probably a download distribution, the name of the distribution starts typically with a 'd'. Generally, the full path to a cloudfront distribution looks like this: http://dxxxxxxx.cloudfront.net

我希望这可以帮助?

这篇关于AWS的iOS SDK和CloudFront的 - 访问图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆