-
http question
Im making a webserver in vb and trying to make it support the <img> tag. When IE reads the <img> tag, it requests the image from the server. I tried sending it the same way I do with text (read the file and send it) but IE displays one of those X boxes. Any idea how to send a picture to IE?
-
location
I am not completely sure if I am getting what you are saying, but it should not matter where the picture is located as long as in your code you are telling it where the picture is located.
For example I store all my images in an images folder so I just point it at that folder.
<IMG src="../images/test.jpg">
Hope this helps, I might be missing what you are talking about.
Kenny
-
Make sure your web server sends the right MIME type in the HTTP headers:
Content-type: image/jpeg
-
I didnt know there are headers for sending info to the client... Any info on that MIME stuff and image/jpeg?
-
If you're going to make a web server, then you'll need this:
http://www.w3.org/Protocols/rfc2616/rfc2616.html
A web server's an interesting project.:D