I am trying to upload a image which i am clicking with the help of the camera. I am trying the following code to upload the image to the remote server.
You can use the libraries from a third party called asi-http-request. It simplyfies for you most of the hard works. In your case, you just do as the following: