Sorry, this is slightly off-topic, but I figure there are likely to be people here who know this kind of stuff or at least can point me in the right direction.
I'm writing something that needs to look a little like a web server. One of the things it must do is send back images when asked for them by a browser. I thought all I needed to do was send back "Content-type: image/jpeg" (for example), followed by a blank line, followed by the binary content of the file. However, while the browser doesn't complain, it also doesn't seem to display the image, so I'm assuming I have it wrong. Can someone tell me what data I need to send back when a browser asks me for say a JPEG file. If different processing is required for other image types (GIF, PNG) I'd like to know about that too. As I say, even a pointer to the right stuff would be fine. Thanks in advance ... and apologies for the off-topic nature of this. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
