I am downloading zip file from web server using Java but somehow I am loosing about 2kb in each file. I don\'t know why since same code works fine with other formats, e.g, text,
Try to remove the lines:
conn.setDoOutput(true); conn.setDoInput(true); conn.setRequestProperty("content-type", "binary/data");