File transfer over xBee

Or one packet could be dropped.

No. The XBees keep trying to resend packets until the packet gets through.

You could have the receiver send a confirmation before sending another packet. That way, the order of the packets would be guaranteed. It's not as fast, but it eliminates a worry.