Correct is to encode the image in Base64 and send it through the server, before sending, convert the image with Base64 to a Byte array and send this whole Object.
//Codificar uma imagem
Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(),
R.drawable.imagem);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);
byte[] bitMapData = stream.toByteArray();
String encodedImage2 =Base64.encodeToString(bitMapData,Base64.DEFAULT);
//Decodificar
byte[] arquivo = null;
arquivo = Base64.decode(objeto.imagem.toString());
See if it helps you http://answall.com/questions/16374/android-enviar-e-receber-imagem-via-webservice
– Giancarlo Abel Giulian
It seems to help a lot, I will implement what he did and see if it works. Vle
– roque
I disagree to close as duplicate because the answers to this question are much better than the other.
– Victor Stafusa
So far there were no answers to the question, I agree with you @Victorstafusa
– Giancarlo Abel Giulian