I am sending a zip file to a server over post method and at server a servlet is used to retrieved its contents and display. The zip contains only one txt file. I am setting entity as following on client side
MultipartEntity entity = new MultipartEntity();
entity.addPart("string", new FileBody(file, "application/zip"));
httpPost.setEntity(entity);
In the servlet when i use ZipInputStream zis = new ZipInputStream(request.getInputStream()); it does not work. Why??