Hello everybody,

I've a piece of code which does the same thing as an usual web server, except that it doesn't work correctly...

well I tried to send an image but the result on the browser is too ugly....

the header sent is like this :

HTTP/1.1 200 OK \n
Date : Wed, 22 Oct 1997 21:00:00 GMT \n
Server : MyServeur/1.0 \n
Content-Type : image/gif \n
Content-Length : 5 \n
Last-Modified: Tue, 08 Jul 1997 00:00:00 GMT \n \n

then I send the image which is a table of BYTES read on a file...(the mistake is maybe here)....

I verify that everything is sent correctly...the problem is that the browser doesn't know how to display the image and i don't know how to tell him how to do so....

by the way, html files are displaye correctly...and i have the same problems with .doc for example...

if anyone interested by code i'll be glad....

can someone give a help : what does miss in the header or in somewhere?

Reda.

 



MSN 8 with e-mail virus protection service: 2 months FREE*