Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Oct : Re: Doubt about stream descendant and idHTTP...
| Subject: | Re: Doubt about stream descendant and idHTTP... |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 10 Oct 2006 11:37:23 |
"PGS" <pguevara@lartec.es> wrote in message
news:452ba8bc@newsgroups.borland.com...
> The problem is that the write method is not executed until
> de "GET" request is finished
Not true. The Write() method of the target TStream is called repeatedly
during a download of the reply data. There is no caching involved at all to
delay the writing of the data to the TStream.
> so "on-the-fly" processing is not possible.
Yes, it is.
> As I said, the write method is executed just after the http GET request
> is finished, but if used with an URL which delivers streaming, this is,
> the GET request does not finish, the write method never is called.
Yes, it will be. There is no way that it could not be called, as TIdHTTP
has nowhere else to store the data.
Gambit