ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-general
php-general
Re: [PHP] Decompressing a string with zlib problems
by Robin Vickery other posts by this author
Oct 28 2005 8:18AM messages near this date
[PHP] Decompressing a string with zlib problems | Re: [PHP] Decompressing a string with zlib problems
On 10/28/05, Graham Anderson <grahama@[...].cc>  wrote:
>  I am having problems decompressing a zlib'd string located in a file.
> 
>  In the file headers, the compression says that it is  zlib.
>  But, when I  'gzinflate' the string, I get the error: gzinflate():
>  data error in <b
>  Is the below NOT a zlib or some strange variant ?
> 
>  <?php
>  $hex="C0636D7664000003DE789C95533B4E [...]

Is this thread any help?

http://lists.apple.com/archives/QuickTime-java/2003/Sep/msg00038.html

Looking at your binary data in a hex editor, you've got what looks
like a cmvd header at the start.  If the next four bytes are the
length of the compressed data, then you've got probably got 990 bytes
following that that you should be decompressing.

-robin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Graham Anderson
Robin Vickery
Graham Anderson
Jochem Maas

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved