Kotlin Android Amazon S3 - upload/download files (images)
Kotlin
51
androind
1
s3
4
Male avatar

loveprogramming viết ngày 04/04/2021

https://grokonez.com/android/kotlin-android-amazon-s3-upload-download-file-image

Kotlin Android Amazon S3 - upload/download files (images)

Amazon Simple Storage Service (Amazon S3) is object storage built to store and retrieve any amount of data from web or mobile. Amazon S3 is designed to make web-scale computing easier for developers. In this tutorial, we're gonna create an Android App that can upload/download files (images) to/from Amazon S3 with Kotlin language.

Related Post: How to integrate AWS Mobile SDK into Android App

I. Technology

  • Android Studio 2.x
  • AWS Mobile SDK Client 2.6.7

    II. Data Storage with Amazon S3

    1. Integrate AWS Mobile SDK into Android App

    Please visit this article for details.

    2. Enable User Data Storage

    Open your project in Mobile Hub and choose the User Data Storage tile to enable the feature.

amazon-s3-storage-enable

Choose Store user data and click on Save button:

amazon-s3-storage-enable-save

3. Updated latest cloud configuration file

Return to the project details page, click on Integrate button:

amazon-s3-storage-integrate

Download new Cloud Config file, then override it in <project>/app/src/main/res/raw:

amazon-s3-storage-upadte-config-file

4. Create an IAM user

We need to provide access permission mobile bucket. So follow these step to create an IAM user and get Access key ID and Secret access key:

Go to https://console.aws.amazon.com/iam/
In the navigation pane, choose Users and then choose Add user.

springboot amazon s3 starter - choose user

Input User name, choose Programmatic access for Access type:

amazon s3 starter - add user info

Press Next: Permissions button -> go to Set permissions for jsa-user screen.
Now, choose Attach existing policies directly -> filter policy type s3, then check AmazonS3FullAccess:

amazon s3 starter - add policies

Press Next: Review:

amazon s3 starter - review policies

More at: https://grokonez.com/android/kotlin-android-amazon-s3-upload-download-file-image

Bình luận


White
{{ comment.user.name }}
Bỏ hay Hay
{{comment.like_count}}
Male avatar
{{ comment_error }}
Hủy
   

Hiển thị thử

Chỉnh sửa

Male avatar

loveprogramming

193 bài viết.
64 người follow
Kipalog
{{userFollowed ? 'Following' : 'Follow'}}
Cùng một tác giả
Male avatar
1 0
Tutorial Link: (Link) (Ảnh) Django is a Pythonbased free and opensource web framework that follows the modeltemplateview architectural pattern. A...
loveprogramming viết 5 tháng trước
1 0
Male avatar
1 0
https://loizenai.com/angular11nodejspostgresqlcrudexample/ Angular 11 Node.js PostgreSQL Crud Example (Ảnh) Tutorial: “Angular 11 Node.js Postg...
loveprogramming viết 4 tháng trước
1 0
Male avatar
1 0
Angular Spring Boot jwt Authentication Example Github https://loizenai.com/angularspringbootjwt/ (Ảnh) Tutorial: ” Angular Spring Boot jwt Authe...
loveprogramming viết 4 tháng trước
1 0
Bài viết liên quan
Male avatar
0 0
https://grokonez.com/frontend/angular/angular6/kotlinspringbootangular6crudhttpclientmysqlexamplespringdatajparestapisexample Kotlin Spring Boot +...
loveprogramming viết 7 ngày trước
0 0
{{like_count}}

kipalog

{{ comment_count }}

bình luận

{{liked ? "Đã kipalog" : "Kipalog"}}


Male avatar
{{userFollowed ? 'Following' : 'Follow'}}
193 bài viết.
64 người follow

 Đầu mục bài viết

Vẫn còn nữa! x

Kipalog vẫn còn rất nhiều bài viết hay và chủ đề thú vị chờ bạn khám phá!