简体   繁体   English

如何在android中将图像上传到Amazon S3服务?

[英]How to upload images to Amazon S3 services in android?

I am building a mobile app on Android Platform where uploading of images to the bucket is one heck of an issue.我正在 Android 平台上构建一个移动应用程序,其中将图像上传到存储桶是一个大问题。 I followed the transfer utility tutorial but it didn't got to be working.我遵循了传输实用程序教程,但它没有工作。

Find my android file screenshot below.在下面找到我的 android 文件截图。

utility setup实用程序设置

The Utils class contains the necessary credentials which i counter checked no. Utils 类包含我反检查没有的必要凭据。 of times.次。

Please help me out, stuck with it for about a week now and yet no result.请帮帮我,现在坚持了大约一个星期,但没有结果。

AWS Giving an automated source code based on services that you have selected on Amazon Mobile Hub AWS 根据您在Amazon Mobile Hub上选择的服务提供自动源代码

Go to MobileHub -> open your app - > click on UserData Storage -> click on Store User Data .转到 MobileHub -> 打开您的应用程序 -> 点击 UserData Storage -> 点击 Store User Data 。 Below you can find " Build your app " click on it.您可以在下方找到“构建您的应用程序”,点击它。 select android - > You can see "download the android source package" click anda zip file wil be download.选择 android -> 您可以看到“下载 android 源代码包”,然后将下载一个 zip 文件。 open in android studio.在安卓工作室中打开。 . .

they will give complete automated source code.他们将提供完整的自动化源代码。 just run the app.只需运行该应用程序。 you will see.你会看见。 I have tired.我累了。 and Its working for me.它对我有用。 they have some utility classes for file upload.他们有一些用于文件上传的实用程序类。 please try this请试试这个

在此处输入图片说明

在此处输入图片说明

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

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