The documentation says the org.apache.http.entity.mime.MultipartEntity
class is deprecated. Could anybody please suggest me an alternative ?
I am using this in my code like this:
entity.addPart("params", new StringBody("{\"auth\":{\"key\":\""
+ authKey + "\"},\"template_id\":\"" + templateId + "\"}"));
entity.addPart("my_file", new FileBody(image));
httppost.setEntity(entity);