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: | "PGS" (pgueva..@lartec.es) |
| Date: | Wed, 11 Oct 2006 09:27:14 |
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> escribió en el mensaje
news:452be908$1@newsgroups.borland.com...
>
> "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
>
>
Hi Remy,
You are right, just after sending the message, I ran the sample and it
WORKED!!!. I spent one day making different tries, and I am sure about what
I said before, so the only explanation possible is that there was some
problem with the debugger or something like that, because is the same code
with no changes.
Anyway, now the sample is working ok.
Thanks Remy for your fast answer.
none