Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : Re: idHTTP.Get and AdjustStreamSize issue
| Subject: | Re: idHTTP.Get and AdjustStreamSize issue |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Wed, 9 Aug 2006 09:57:14 |
"York" <office@onlinebg.info> wrote in message
news:44d9a47c@newsgroups.borland.com...
> - The file is large in size (may reach 10MB even more). So waiting
> for Get() to complete is not an option here.
Then you need to re-think your design. The parser must wait for data to be
available before processing it. So you have to come up with a way of
signalling when enough data is available.
> Actually my client application registers a custom protocol to handle
> these files. Like "elcplay://xyz.com/thefile.ers" So my intention is to
> make it similar to a video player (the content is not video but a
> prerecorded live session anyway...)
Then you will likely need to dynamically process the data as it is being
downloaded. I've already given you some ideas of how to implement that so
your parser waits for data accordingly.
Gambit
none