Just Simple Info

Pages

Showing posts with label Upload file to server. Show all posts
Showing posts with label Upload file to server. Show all posts

Android Upload File To Server With Data

Upload file to server with data and progress bar
Sometimes our android application need to upload some file to our live server like images, text files, etc.
Uploading file to server is one of my worst task. Searching, testing and searching, testing and again and again. I spent a lot of time just to upload the image to server. After a day, lucky I uploaded my first file to server. What I done is, I convert bitmap to byte[] then convert to Base64String then send to server as POST. But the size of original size increase which is not good. It consume extra bandwidth and time of uploading.