Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Nov : Re: ICS Webserver display an image
| Subject: | Re: ICS Webserver display an image |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Wed, 21 Nov 2007 13:23:24 |
"Bob D." <bobd@demo.it> wrote in message
news:47447730$1@newsgroups.borland.com...
> I'm doing something wrong?
You are freeing the memory stream. Don't do that. The data is not actually
sent until after the event handler exits, so the stream has to remain valid
during that time. The server will free the stream automatically after it is
finished using it.
Gambit