EDN Admin
Well-known member
So Im using fstream to read the data from a file and send it over a socket to a server, and then write it back to a file.
When the file size gets completed in 1 transfer everything works fine, but when the transfer takes more than one 4096 byte array of data, when viewing the file on the servers end there are spaces between each character in the file and some of the hex characters
used for parsing data are changed to s when viewing in Notepad. Is there some obvious reason this would be happening? The file size remains the same
If there isnt I can take the time to post my code for the read, the transfer, and the write, but I dont want to bother if I dont have to.
View the full article
When the file size gets completed in 1 transfer everything works fine, but when the transfer takes more than one 4096 byte array of data, when viewing the file on the servers end there are spaces between each character in the file and some of the hex characters
used for parsing data are changed to s when viewing in Notepad. Is there some obvious reason this would be happening? The file size remains the same
If there isnt I can take the time to post my code for the read, the transfer, and the write, but I dont want to bother if I dont have to.
View the full article