This tutorial explains how to upload a file to server from Android. This tutorial might be helpful to all android developer to upload the image or any file on the server. Most of the critical code that most of the beginner facing stuff to upload image on server.
In this tutorial we wont use HttpClient, The method HttpClient is deprecated. We can use now the HttpURLConnection. It is always good to avoide things that Google don’t you as safe.