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,
I had a problem with downloading zip files from http once that turned out to be that my downloads included http headers in their beginning, but that made my files a bit larger not smaller, so you probably don't have this problem.
As a side note you might consider using Apache Commons Net for download related apps - it's really great.