【发布时间】:2013-12-20 18:15:30
【问题描述】:
我正在开发一个需要将图像上传到 S3 的应用程序。现在我这样做:
S3PutObjectRequest *por = [[S3PutObjectRequest alloc] initWithKey:nameOfThePicture inBucket:nameOfTheBucket];
por.contentType = @"image/jpg";
por.data = imageData;
// Put the image data into the specified s3 bucket and object.
S3PutObjectResponse *putObjectResponse = [self.s3 putObject:por];
por.delegate = self;
将图像直接上传到 S3 太慢,我已经配置了 CloudFront 服务。 现在,我想通过 CloudFront 将图像上传到 S3 中的原始存储桶。有可能做到吗?如果是,我该怎么做?
非常感谢,
维克多
【问题讨论】:
标签: ios objective-c amazon-s3 amazon-cloudfront