i need to transfer binary data over socket and write the data to a file. Can anyone please help me out with this issue. I am using fread() to read the file and fwrite() to write the file,send() and recv() as the socket calls. I am able to transfer the whole file but the diff command shows that the source and the received file are different. Can anyone guide me regarding this issue????
Thanks in advance