I am sending a simple text file from a PC to a Raspberry Pi computer. The file lands there properly but when opened it is not the same as what I sent. It is just characters that are not even close to the same.
Well I figured out why it is unreadable, I was sending unencrypted data and then unencrypting it anyway, giving the bad results.
However, one thing I did find out is that when I try send encrypted data, the file never makes it to the destination. Can anyone shed some light as to why that would be?
How are you sending it? How are you detecting, at the receiving end, that you have received all the data and can close the connection, write the file, etc.