2009-08-13 6 views

答えて

3

GZIPInputStreamに見て:

GZIPInputStream gzipInputStream = new GZIPInputStream(new FileInputStream(inFilename)); 
byte[] buf = new byte[1024]; 
int len; 
while ((len = gzipInputStream.read(buf)) > 0) { 
    // buf contains uncompressed data  
} 
0

あなたはGZipInputStreamでそれをデコードすることができるはず、ByteArrayInputStreamにデータを入れてください。

文字列からバイトを取得するには、getBytes("ISO-8859-1")を試してください。このエンコーディングは受信バイトを変更しません。