Topic: GZIP流的问题,急!

  Print this page

1.GZIP流的问题,急! Copy to clipboard
Posted by: windshome
Posted on: 2004-03-10 15:17

程序是这样写的:

  private DataOutputStream out;
  private DataInputStream input = null;

out = new DataOutputStream(new GZIPOutputStream(sslSocket.getOutputStream()));
input = new DataInputStream(new GZIPInputStream(sslSocket.getInputStream()) );

在执行如下的语句时出现错误
int len = input.readInt();

错误信息为:
java.util.zip.ZipException: invalid block type
找不到是什么原因,请高手指点,谢谢,急!


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923