简体   繁体   English

将图片从手机上传到Amazon S3,然后返回图片URL

[英]Upload image from phone to Amazon S3 then return the image URL

I'm working on an android app and I'm having trouble with one part of it. 我正在开发一个Android应用程序,但其中一部分遇到了麻烦。

I am trying to take a photo, upload this photo to Amazon S3, then get the URL of the image and set it as the image of an ImageView. 我正在尝试拍摄照片,将此照片上传到Amazon S3,然后获取图像的URL并将其设置为ImageView的图像。

Currently I am getting the image from the intent perfectly fine, but I am having a lot of trouble understanding how to upload the image properly using a putObjectRequest. 目前,我可以从意图中很好地获取图像,但是在理解如何使用putObjectRequest正确上传图像时遇到了很多麻烦。

Any help would be greatly appreciated. 任何帮助将不胜感激。

What is giving you trouble? 是什么给您带来麻烦? Have you checked out the Getting Started Guide? 您是否已查看入门指南? http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/s3transfermanager.html http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/s3transfermanager.html

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

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