Android Upload Image Using Retrofit | Image Upload Tutorial | CheezyCode - Hindi

Android Upload Image Using Retrofit | Image Upload Tutorial | CheezyCode - Hindi

Cheezy Code

1 год назад

14,494 Просмотров

Upload a file with retrofit in Android. Learn how to implement image upload functionality with simple example. Here we have used images from gallery. You can also use camera to take pictures and upload it to server using the same code. Learn how to upload a simple image file using retrofit multipart feature.

Learn about Multipart in Retrofit. How to create request body, how to create files in application directory, how to setup HTTP Interceptor Logging in Retrofit. Upload images to your API. We have setup a simple API for images. This API is written using Express JS along with Multer. Learn all these with example in Kotlin Flows in Hindi.

Topics covered -
1. Pick Image from Gallery using ActivityResultContracts
2. Upload Image using Retrofit
3. Create files in application directory with FileInputStream and FileOutputStream
4. Retrofit Multipart Functionality
5. HttpLoggingInterceptor setup for Request/Response Logging
6. Complete File Upload Example.

Kotlin Flows Playlist -
https://www.youtube.com/playlist?list=PLRKyZvuMYSIPJ84lXQSHMn8P-0J8jW5YT

Jetpack Paging Tutorial -
https://www.youtube.com/playlist?list=PLRKyZvuMYSIPci119n2gt_kq1GU-PAYRk

Complete Dependency Injection Playlist Link -
https://www.youtube.com/playlist?list=PLRKyZvuMYSIPwjYw1bt_7u7nEwe6vATQd

Complete Android Architecture Components Playlist -
https://www.youtube.com/playlist?list=PLRKyZvuMYSIO0jLgj8g6sADnD0IBaWaw2

Beginner series in Android Playlist (Hindi) -
https://www.youtube.com/playlist?list=PLRKyZvuMYSIN9sVZTfDm4CTdTAzDQyLJU

Kotlin Beginners Tutorial Series -
https://www.youtube.com/playlist?list=PLRKyZvuMYSIMW3-rSOGCkPlO1z_IYJy3G

For more info - visit the below link
http://www.cheezycode.com


We are social. Follow us at -
Facebook - http://www.facebook.com/cheezycode
Twitter - http://www.twitter.com/cheezycode
Instagram - https://www.instagram.com/cheezycode/

Тэги:

#image_upload_retrofit_tutorial_hindi #retrofit_file_upload_example_hindi #file_upload_using_retrofit_android_tutorial #node_js_api_multer_android_image_upload_tutorial #retrofit_multipart_request_for_images_android #httplogginginterceptor_retrofit_hindi_tutorial #android_tutorial_for_beginners #learn_android_programming_hindi #android_tutorial_for_beginners_hindi #android_development_tutorial_hindi
Ссылки и html тэги не поддерживаются


Комментарии:

Sai Wemonde
Sai Wemonde - 06.11.2023 15:34

thank you sir ji

Ответить
Tops Submission
Tops Submission - 22.09.2023 21:00

superb explanation . thanks for the code if possible please add source code also from next videos

Ответить
Amit Ghasoliya
Amit Ghasoliya - 04.09.2023 06:14

1. how i post miltiple images
2. how i get both upload options for jpg file and png file

Ответить
annu sinha
annu sinha - 17.05.2023 13:08

nice video

Ответить
Azzad na
Azzad na - 17.05.2023 13:06

nice

Ответить
The Michael
The Michael - 09.04.2023 15:50

Thank You very much, Sir 🤍

Ответить
Aman kumar
Aman kumar - 31.03.2023 16:01

iska source code github se dedo please

Ответить
Muhammad Ali
Muhammad Ali - 09.01.2023 10:40

Bro xml api calling py b tutorial bna dein retrofit k sath. Xml mai koi listing waghera ki get aur post ki please

Ответить
Prathmesh Chaudhari
Prathmesh Chaudhari - 17.12.2022 23:45

Informative tutorial, sir
Could you please explain how we can upload multiple images?

Ответить
Sumit Soni
Sumit Soni - 11.11.2022 17:55

Cheezy code ❤️🔥🔥💯

Ответить
Aniket Tambe
Aniket Tambe - 30.10.2022 23:27

Hi bro,
I m getting "Invalid content type \"application/json; charset=utf-8\". Expected \"application/json\" for field" error when i tried to send the request with multiple parts one with file data and other are json objects.

Ответить
Manish Pal
Manish Pal - 28.10.2022 10:31

Hi bro can you make video on jetpack compose why to use instead of xml... and I feel compose make UI tougher.

Ответить
apna comedy shorts
apna comedy shorts - 27.10.2022 04:22

I want to develop news apps
But I confused 🤔
Which adaptor ( recycler adaptor,array adaptor)

Please 🥺

Ответить
Hassan Rana
Hassan Rana - 23.10.2022 18:35

copyto function not suggesting in android studio...How to import that class which has copyto function?

Ответить
Abhilekh
Abhilekh - 23.10.2022 08:34

Visiting your channel daily for testing videos.

Ответить
Faisal Developer
Faisal Developer - 22.10.2022 20:12

Brother Clean Architecture ki details video bna dy

Ответить
studio
studio - 16.10.2022 15:33

can you please make video on solid principles in android with example

Ответить
sachin khairnar
sachin khairnar - 16.10.2022 14:43

Hi sir, your all tutorial is amazing. I love it. last month I am try to lear machine learning and AI. how we can implement machine learning in android applications. how we can do that if possible to guide it.

Ответить
Suraj Tutz
Suraj Tutz - 16.10.2022 07:25

Sir ye api ktor me bana he? Pls give tutorial, ki ktor me file upload kese karte he

Ответить
Kh App
Kh App - 14.10.2022 06:25

Really a nice explanation as always

Ответить