简体   繁体   English

AWS S3元数据iOS

[英]AWS S3 Metadata iOS

I am developing photo sharing application in iOS using Amazon as backend. 我正在使用Amazon作为后端在iOS中开发照片共享应用程序。 I have uploaded photo to S3 but my problem is how to get metadata of uploaded photo, actually i want lat and lang of that photo. 我已经将照片上传到S3,但是我的问题是如何获取上传照片的元数据,实际上我想要该照片的经纬度。 I am using latest sdk version 2.0.2 of aws. 我正在使用AWS的最新SDK版本2.0.2。 Can you help me? 你能帮助我吗? Can you guid me which function I have to use to get meta data information? 您可以指导我获取元数据信息必须使用哪个功能吗?

The location data, if available, is embedded inside the image file itself and is not part of the file's S3 object metadata. 位置数据(如果可用)将嵌入在图像文件本身内部,而不是文件的S3对象元数据的一部分。 You can define your own custom metadata when the image is uploaded and set the image's coordinates there. 您可以在上传图像时定义自己的自定义元数据 ,并在那里设置图像的坐标。

It may be better though to store the coordinates in a DynamoDB table along with the image's S3 object key to provide better lookup and querying. 最好将坐标与图像的S3对象键一起存储在DynamoDB表中,以提供更好的查找和查询。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM