Re: Using ZLib



J French wrote:
> - have you tried: BytesCopied := FS2.CopyFrom(ZS, MaxInt );
>
> That should attempt to read MaxInt bytes from the current .Position in
> the Stream.
>
> If that does not work then try repeatedly using CopyFrom on smaller
> chunks

I tried something like that, but I couldn't work out how to get it to
stop when it had copied the entire stream.

BTW the ZLib code is on the Delphi CD.


> Dynamic Arrays of Records
> - available from D4 on
> - the Arrays are always zero based

Thanks - that's exactly what I was looking for.

- QS Computing.

.



Relevant Pages

  • Re: Using ZLib
    ... >> That should attempt to read MaxInt bytes from the current .Position in ... >stop when it had copied the entire stream. ... Which version of Delphi are you using? ... >> Dynamic Arrays of Records ...
    (comp.lang.pascal.delphi.misc)
  • Re: check this one
    ... you can troll your boat down another stream.. ... Prev by Date: ...
    (rec.motorcycles.harley)
  • Re: check this one / attn: "Becky"
    ... > you can troll your boat down another stream.. ... I owe ya a few, ... Prev by Date: ...
    (rec.motorcycles.harley)
  • Re: do I use fopen or fsockopen to get an image as a stream of bytes?
    ... Andy Hassall wrote: ... >>How do I get an image like that, as a stream of bytes? ... I notice that IE renders the image as an image, when I echo just the ... Prev by Date: ...
    (comp.lang.php)
  • Testing Webcam/mic
    ... WMP URL http://172.200.33.70:1219/ ... How does it stream (sound) at your end? ... Prev by Date: ...
    (microsoft.public.windowsmedia.encoder)