how to display photos

Hello,
I have the following hardware: Arduino Uno Ethernet board, and a Weatherproof TTL Serial JPEG Camera with NTSC Video. The camera connects to the Arduino via serial pins and in Windows, uses a program called Comm Tool to control it. I would like to control the camera using code in a sketch so that when the camera senses movement, it takes a snap shot and downloads the .jpg image to the sdcard reader on the Arduino board. At the same time, I have the Arduino running a web server. The server is assessable to anyone on the net, by going to my IP address and viewing the page listing the files available on the sdcard.
So far, I have the web server set up, and you can open files listed/stored on the sdcard. You can view text stored in text files, but you cannot view the .jpg files I've preload.
Questions: 1. Anyone know of a tutorial sketch that might offer a means to control the camera; 2. How about a tutorial showing how to view a .jpg file on HTML web page

As some of you might know, from my previous posts, I'm not much of a coder, but I'm happy to poke around with tutorial code until I get what I'm looking for. Any help would be appreciated.

Thanks,
Cris L.

jpg files have been a built in function of pretty much all webbrowsers since the dawn of the internet, so what are you seeing instead of the image? a blank page or encoded gibberish?

Hi,

you cannot view the .jpg files I've preload.

If you download the JPG can you view it in some other app?? Like faststone.org viewer.

Try loading a jpg you CAN view on the web, that you downloaded, on the SD...

I'm sorry for the confusion, let me restate the situation: I have one .jpg file loaded on the sd card. My Arduino/Ethernet SBC is running a web server, which is accessible to anyone on the net that has the correct IP address and knows which port I've had forwarded. Once the client browses to the IP address they are greeted with one line of text and a list of files that reside on the sd card. One of the files is the above mentioned .jpg. If the client clicks on that .jpg file, they will only see "ÿØÿþ", so yes, gibberish. On the other hand, if they click on one of the text files they then see the text inside the file. All I'm trying to do is display the image of that said .jpg file, and yes, if I were to put the sdcard in my card reader in my laptop, I could view the image as any other .jpg image, so it is not corrupt. I'm guess the solution is in how the web server code is written and that is where I fall short on this project, needing some suggestions/link to a tutorial.

Thanks,
Cris L.

My first thought is that it is a memory / size issue.
How large is the JPG file?

So how does the brouser know to display the jpg file as a image?

It sounds as if the camera is designed to have a connection to the PC and be controlled from the PC.

Is there any particular reason why you aren't doing this whole project on the PC? It would make the web serving and file management trivially simple compared to trying to do it on an Arduino.

zoomkat:
So how does the brouser know to display the jpg file as a image?

The HTTP request should specify the content types the client can accept and the HTTP response should specify which content type is being provided.

PeterH:

zoomkat:
So how does the brouser know to display the jpg file as a image?

The HTTP request should specify the content types the client can accept and the HTTP response should specify which content type is being provided.

So how is the OP doing this in his code? Can you show us?