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

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

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?

Yes
My file (dat, bin) is in sdcard
How to send it to other pc

Power_Broker:
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?

Yes
My file (dat or bin) is in sdcard and Arduino transmitting to other pc

How to send it to other pc

One byte at a time.

PaulS:
One byte at a time.

Transmit dat or bin file in sdcard mount on arduino 2560 via xbee to another xbee USB installed in other PC

The XBees have NOTHING to do with the issue. They simply replace wires.

You can (or should be able to) read a byte from the file regardless of what extension the file has.

You can (or should be able to) write that byte to a serial port. Whether there is an XBee connected to the serial port or a wire makes NO difference.

You can (or should be able to) determine if there is serial data to read. Whether there is an XBee connected to the serial port or a wire makes NO difference.

I think that I've mentioned that you should be able to write to the serial port. That the PC is on the other end makes NO difference.

PaulS:
The XBees have NOTHING to do with the issue. They simply replace wires.

You can (or should be able to) read a byte from the file regardless of what extension the file has.

You can (or should be able to) write that byte to a serial port. Whether there is an XBee connected to the serial port or a wire makes NO difference.

You can (or should be able to) determine if there is serial data to read. Whether there is an XBee connected to the serial port or a wire makes NO difference.

I think that I've mentioned that you should be able to write to the serial port. That the PC is on the other end makes NO difference.

How Sendding bin file in sdcard amount in arduino to a other xbee recieiver connec to pc over xbee module radio ?