Problem to transfer binary file over TCP socket
Hello,
I can read a binary file and to write it to another location, it is all fine. But when I tried to transfer a binary file over a TCP socket, the binary file collapsed. Although it has the same size from the transmitter, it can no longer be executed after reinstalled from received packets. Appreciate any helps. Thank you. Jim |
Not enough details to do more than speculate, but my first guess would be that the attribute bits are not set correctly on the receiving end (assuming Linux receiver). You need the file to be executable.
chmod +x filename --- rod |
how exactly did you action this remote copy??
|
Assuming you are talking about FTP, did you set the transfer mode to binary?
|
All times are GMT -5. The time now is 12:31 PM. |