I'm new to programing and I'm trying to write code to download a jpeg from a C628 jpeg camera and transmit it wirelessly over xbee. I have the camera and arduino working together and also have the xbees working. I am having trouble figuring out how to code to take in account how many packets per jpeg and how to stream the info and save it using a SD card sheild on the receiving end. I attached the data sheet and user manual below. Thanks for any help.