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

preview_player
Показать описание
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 -

Jetpack Paging Tutorial -

Complete Dependency Injection Playlist Link -

Complete Android Architecture Components Playlist -

Beginner series in Android Playlist (Hindi) -

Kotlin Beginners Tutorial Series -

For more info - visit the below link

We are social. Follow us at -
Рекомендации по теме
Комментарии
Автор

Thanks for this video, it is really informative

ItsRavinderSinghh
Автор

Thanks bhaiya, i will about to learn this thankfully you dropped it

ashishgautam
Автор

Visiting your channel daily for testing videos.

abhilekh
Автор

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

topssubmission
Автор

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.

sachinkhairnar
Автор

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

manishpal
Автор

Hey can you make a same video but following mvvm pattern and coroutines and also on click of button show a dailog to select image from where either camera or gallery ( A user registration form will be a perfect example)

rajmourya
Автор

Thanks for this video sir you explain really well 🙏 . But how can we add some form data to that please guide.

deepankarmishra
Автор

Agar yahi cheez Fragment ke under kare to, mai jab yahi Fragment me karne ki koshish kar raha hun to ho hi nhi raha, file.asRequestBody kar raha hun to error de raha hai, Unresolved reference: asRequestBody. Ek aur problem bata raha hai - The 'InputStream' should be freed up after use with '#close( )', kya apke me ye same problem dikha raha hai kya ?

shubhamchatterjee
Автор

This will help me later thanks.

Support from Android 4.1 to last right?

rogerccaqp
Автор

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.

anikettambe
Автор

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

studio
Автор

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

hassanrana
Автор

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

Please 🥺

apna_comedy_shorts
Автор

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

alisidhu
Автор

Cheezy Bhai calling app me outgoing call par ringtone kese set kare is ke bare me batana.

salimk
Автор

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

surajtutz
Автор

can you make one about how to download multiple files with progress

mt
Автор

Brother Clean Architecture ki details video bna dy

faisaldeveloper
Автор

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

prathmeshchaudhari
welcome to shbcf.ru