HTTP Webserver; serving images

I am working with the DIY Hydrogen Wifi break-out board. A library is provided that shows how to respond to http requests. The problem is that I am trying to figure out how to serve an image instead of text. I have tried sending the header: "HTTP/1.1 200 OK" followed by "Content-Type: gif/html " and then sending the the image. The image sent was converted to a byte array using the function (xxd -i pic.gif > array.c ) in linux; this method worked fine for HTML pages. Is this method legitimate for serving images anyway? I am not too familiar with functionality of http servers, but i looked at some examples that were implemented for other platforms.

I have tried sending the header: "HTTP/1.1 200 OK" followed by "Content-Type: gif/html " and then sending the the image.

Code?

If possible, you should serve up links to images stored elsewhere, instead of trying to serve up a static image file.

Since I am using the hydrogen board, I had to implement everything in the library instead of the sketch because its not very well made; I was just asking if the concept sounds correct. I am trying to send the image instead of linking to an image because the i will be using this when it works to send images from a camera connected to the arduino board.

Still can't see the code.

I am trying to send the image instead of linking to an image because the i will be using this when it works to send images from a camera connected to the arduino board.

What camera? Can you get something less than the whole image from the camera at one time?