download zip file using java?

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

    A few years ago I remember running into a problem with an old version of Tomcat (5.5.25 for memory) that would cause largish downloads to be truncated. We fixed this by upgrading to a 5.5.27. I also recall the same problem was found and fixed in an early Tomcat 6.0 release.

    If this rings any bells for you, take a look at the Tomcat change logs.

提交回复
热议问题