Sending a file with HttpPost?
问题 I'm trying send an image to web service using HttpPost. The problem is when I try send image return an error that image does not found, but image exist I selected that in gallery. How can I solve this ? Here how I'm trying public Boolean insert(Usuario u, String fotoPath){ HttpClient httpClient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(urlPost.toString()); try { File img = new File(fotoPath, ConvertStringToMD5.getMD5(u.getEmail().split("@")[0])); httppost.addHeader(