Downloading Jpeg and sending it over Xbee

Hello,

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.

http://www.electronics123.net/amazon/datasheet/C628.pdf http://www.electronics123.net/amazon/datasheet/C628%20UM_v11.pdf

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'm having trouble reading your code.