TidHTTPServer Send HTML + iMAGE HEEEEEEEELLLLLP !!

TidHTTPServer is quite an adequate file server - is there any reason why you
are generating files instead of letting the server find the files?

In your incomplete bits of code you do not actually show how you return your
file stream to the requesting client.

You can find examples at the Indy home page. Finds your version of Indy at
the bottom then go to the bottom of the next page to download sample source.
http://www.nevrona.com/Indy/dowload/index.html

Quote
"Nicolas PERRIN" <nicolas.per...@club-internet.fr> wrote in message

news:3dbdb3f6$1@newsgroups.borland.com...
Quote
> Hi all,
> i use TidHTTPServer to send a page like this:
> <html><body>
> Hello
> <img src="ok.jpg">
> </body></html>

> the browser make then two calls on the Get method : one for html page and
> one for JPEG Image.
> For the jpeg image, i use
>     TMemoryStream->LoadFromFile(myfile);
>     Reponse->ContentType="image/jpeg";
>     ...
> First call i have the message Hello
> Second i have the image without html

> How can i tell in the response my image is a part of the html page ???

> PS : I've tried Reponse->ResponseNo = 206;    // Partial but it didn't
work
> ???

> Thanks for help, i found no TIdHTTPServer sample on the net.

> NP.