Dear ioantiba,
It's look like the buffer size is only 1024 bytes in the server.
So after the 1024 bytes, server is splitting the records.
If the record size is less than 1024 bytes, you will not have split records.
So please increase the buffer size in the server to fix this issue.
Regards,
Naveen