I am using retrofit in my project. Now I need to upload an image on server using retrofit. So I need help in the following question:
How to upload compressed bitmap to a server using retrofit in form data? Any link or example will be helpful.
I am using retrofit in my project. Now I need to upload an image on server using retrofit. So I need help in the following question:
How to upload compressed bitmap to a server using retrofit in form data? Any link or example will be helpful.
Upload can be done using below steps
Step 1: Create a method with below code
Step 2: Create Interface as below
Step 3: Create class as below