im trying to send a picture from a android device to a server and was wondering if it was possible to send the picture information in a xml file and rebuild it on the server?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, there is, you just have to use Base64 to encode and decode the file stream. To encode you’ll use the android.util.Base64 class and at the server side (if you’re also using Java) you can use the commons-codec Base64 class.
The idea would be build the xml file as with whatever tool you would like to:
Once you do this, just upload the XML file itself to your server and parse the XML file in there.