Re: [PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-14 Thread Bob Sabiston
Zlib compression is what's used in Gzip. Just try it ;) $uncompressed = gzuncompress(file_get_contents("binaryfile.ext")); -Casey On Dec 14, 2007, at 9:45 AM, Bob Sabiston wrote: That isn't going to work. Gzip is used for entire files. Do you understand what I&#

Re: [PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-14 Thread Bob Sabiston
Revisiting the Zlib PHP html page, I notice that it says that Zlib in PHP works with uncompressed files, but not with sockets. Could that be my problem? What does it mean to be using sockets? I'm sending this data wirelessly from a handheld device to a server, and I'm using the device

Re: [PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-14 Thread Bob Sabiston
That isn't going to work. Gzip is used for entire files. Do you understand what I'm trying to do, or am I misunderstanding you? Bob On Dec 13, 2007, at 11:13 PM, Casey wrote: On Dec 13, 2007 7:44 AM, Bob Sabiston <[EMAIL PROTECTED]> wrote: On Dec 12, 2007, at 7:20

Re: [PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-13 Thread Bob Sabiston
e has used it the other way as well? Thanks for any info. Bob On Dec 12, 2007, at 1:03 PM, Bob Sabiston <[EMAIL PROTECTED]> wrote: On Dec 12, 2007, at 2:31 PM, Richard Lynch wrote: On Wed, December 12, 2007 11:28 am, Bob Sabiston wrote: I'm trying to read some zlib-compress

Re: [PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-12 Thread Bob Sabiston
On Dec 12, 2007, at 2:31 PM, Richard Lynch wrote: On Wed, December 12, 2007 11:28 am, Bob Sabiston wrote: I'm trying to read some zlib-compressed data from a regular binary file. When I try to attach the zlib compression filter, I am getting an error: something about how the prebuf

[PHP] zlib and fopen and stream_filter_append, prebuffer read errors help

2007-12-12 Thread Bob Sabiston
Hello, I'm trying to read some zlib-compressed data from a regular binary file. When I try to attach the zlib compression filter, I am getting an error: something about how the prebuffered data didn't work with the filter and so the filter wasn't added to the filter chain. I looked a