Android: decompress string that was compressed with PHP gzcompress()

前端 未结 3 1195
别跟我提以往
别跟我提以往 2021-01-03 15:30

How can i decompress a String that was zipped by PHP gzcompress() function?

Any full examples?

thx

I tried it now like this:

public s         


        
3条回答
  •  攒了一身酷
    2021-01-03 15:43

    See

    http://developer.android.com/reference/java/util/zip/InflaterInputStream.html

    since the DEFLATE algorithm is gzip.

提交回复
热议问题