How to decompress a gzipped data in a byte array?

后端 未结 4 571
别跟我提以往
别跟我提以往 2020-12-02 00:20

I have a class which has a method that is receiving an object as a parameter. This method is invoked via RMI.

public RMIClass extends Serializable {
    pub         


        
4条回答
  •  心在旅途
    2020-12-02 00:52

    Look at those samples, and wherever they're using FileOutputStream, use ByteArrayOutputStream instead. Wherever they're using FileInputStream, use ByteArrayInputStream instead. The rest should be simple.

提交回复
热议问题