LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Problem to transfer binary file over TCP socket (https://www.linuxquestions.org/questions/linux-networking-3/problem-to-transfer-binary-file-over-tcp-socket-420191/)

yhus 02-27-2006 10:13 PM

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

theNbomr 02-28-2006 12:14 AM

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

satinet 02-28-2006 06:14 AM

how exactly did you action this remote copy??

baldy3105 02-28-2006 08:41 AM

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.