1 Reply Latest reply on Oct 24, 2015 12:25 AM by BHAKTA RANJAN SATAPATHY

    How to integrate zlib extension in RhoMobile 2.0 version

    Ivo Costa

      I am compressing the REST API services to return zipped data.

       

      Also able to make a call from Rho Mobile and receive the data successfully on the RhoMobile. But i was not able to unzip the data.

       

      I tried to integrate the zlip extension but was not successful. Used the below function to unzip the zipped data.

       

      def inflate(string)

          zstream = Zlib::Inflate.new

          buf = zstream.inflate(string)

          zstream.finish

          zstream.close

          buf

        end

       

       

      I am using RhoMobile 2.0