How to transmit a file (dat or bin, ...) via xbee mount in an arduino mega 2560

hbenlabbes:
Hello everyone
I have a question,
How to transmit a file (dat or bin, ...) via xbee mount in an arduino mega 2560 card, and the same question for file reception.
help me Please
Thank you

I'm guessing the file you want to transmit is on an SD card connected to the Arduino? Is the Arduino transmitting the file or receiving?