Re: Decompressing a string with zlib problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/28/05, Graham Anderson <grahama@xxxxxxxx> 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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux