[英]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.