anybody use zlib with php?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bint

    #1

    anybody use zlib with php?

    Hi, I asked a question yesterday but no one answered, I will try again.
    Anyone use stream_filter_a ppend, specifically to decompress zlib-compressed
    data? I'm trying to use it on a section of data in a file, but I don't know
    if that's possible. Most of my file is made up of normal bytes which I read
    with fread. When I get to the part which is zlib-compressed, I try to attach
    the zlib filter and read my bytes. But I get the error:

    stream_filter_a ppend() [<a
    href='function. stream-filter-append'>functio n.stream-filter-append</a>]:
    Filter failed to process pre-buffered data. Not adding to filterchain.

    I called stream_get_filt ers and zlib is present, as a filter. I am just
    wondering about that pre-buffered data. What is that, do I need to worry
    about it? Here are the calls I make to read from the file once I get to the
    part that is compressed:

    $zlib_filter = stream_filter_a ppend($cellfile , 'zlib.inflate',
    STREAM_FILTER_R EAD, 1);
    $data = fread($cellfile , $thumblength);
    stream_filter_r emove($zlib_fil ter);


    I really appreciate any pointers anyone has!
    B



  • AnrDaemon

    #2
    Re: anybody use zlib with php?

    Greetings, Bint.
    In reply to Your message dated Tuesday, December 11, 2007, 23:13:00,
    Hi, I asked a question yesterday but no one answered, I will try again.
    No need, Your message was posted without problem and appeared in the newsgrop
    in readable form.


    --
    Sincerely Yours, AnrDaemon <anrdaemon@free mail.ru>

    Comment

    • Steve

      #3
      Re: anybody use zlib with php?


      "AnrDaemon" <anrdaemon@free mail.ruwrote in message
      news:1102101504 .20071212221240 @freemail.ru...
      Greetings, Bint.
      In reply to Your message dated Tuesday, December 11, 2007, 23:13:00,
      >
      >Hi, I asked a question yesterday but no one answered, I will try again.
      >
      No need, Your message was posted without problem and appeared in the
      newsgrop
      in readable form.
      that's correct. and we all know that no one has ever used zlib with php. i
      don't even know why they built the zlib in the first place if no one was
      ever going to use it. :)


      Comment

      Working...