The easiest way is to read the file a byte at a time and send it to the network.
But hardly the most efficient - one character per packet involves a huge amount of overhead.
The easiest way is to read the file a byte at a time and send it to the network.
But hardly the most efficient - one character per packet involves a huge amount of overhead.