title: How can you upload photos from android gallery to server?
body: <p>I am writing an android application in which users can pick a photo from their gallery and upload it to a server. How should I accomplish this ?</p>
  
  <p>The application mainly uses SOAP webservices to communicate with the server, but I do not know how to serialize a stream of bytes in KSOAP and therefore I need some help. The solution should not necessarily use KSOAP. A valid solution would be to upload the photo on some server, and just retrieve the URL, which will be stored in the database.</p>