[英]How to upload image to AWS S3 and get the image file's S3 bucket url and save to dynamodb all at once - Android
[英]Store image in AWS s3 bucket and then the resulted url in database
我能够将图像存储在android.Now的s3存储桶中,当我将图像存储在存储桶中时,我想将图像的下载URL存储在数据库表中。 如果我将图像存储在存储桶中,如何获取图像的下载URL?
您应该将对象密钥存储在DB中。 在S3中存储对象时指定密钥,然后继续将其存储在DB中。 从该密钥可以构建下载URL。
对象密钥和元数据 - Amazon Simple Storage Service: http : //docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.