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
|