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,
Put an out.flush() just after the " while ((count = in.read(b)) > 0) {...}" section and before the out.close().
out.flush()
while ((count = in.read(b)) > 0) {...}
out.close()