download zip file using java?

前端 未结 6 1438
鱼传尺愫
鱼传尺愫 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

    Only zip files, huh? Very odd. Is it from any server, or just this one? If you rename the file (change extension) do you get the same problem? Which bytes are missing? Are you sure it's the last 2K bytes and not some chunk from the middle/etc... ?

提交回复
热议问题