download zip file using java?

前端 未结 6 1436
鱼传尺愫
鱼传尺愫 2021-02-15 12:13

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,

6条回答
  •  一整个雨季
    2021-02-15 12:52

    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.

提交回复
热议问题