douqiao5552 2010-03-12 07:03
浏览 69

如何在PHP中解压缩最初使用zlib压缩的数据?

I am quite new to Iphone development , so please bear me if I ask some some common questions. In my application I have to transfer data from my Iphone app to a PHP server and for this I have to compress the NSdata in my Iphone app and then pass it on to the PHP server and then Uncompress it in PHP and process the data sent by Iphone in PHP.

For compressing the data in Iphone I have used zlib library.Now on PHP side I want to uncompress this data , but I am unable to do so.

Can anyone help me in uncompressing this data in PHP.

Thanks in Advance.

Gaurav Arora

  • 写回答

1条回答 默认 最新

  • drhdjp97757 2012-03-16 13:01
    关注

    Use gzuncompress function: http://ru2.php.net/manual/en/function.gzuncompress.php

    Example:

    <?php
    $compressed   = gzcompress('Compress me', 9);
    $uncompressed = gzuncompress($compressed);
    echo $uncompressed;
    
    评论

报告相同问题?

悬赏问题

  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 MATLAB中streamslice问题
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序