06-26-2006, 07:01 PM
I am using the Winsock control with TCP/IP protocol and trying to send 29K file to a client. Not all the file gets there; only 5K. It is a graphics file and when opened, you can see it has become corrupted. I am using what I call the "burst" method of sending. I collect all the binary bits of the graphics file and send them at once. I've had success doing this with files of size 3K. Because of the larger size, do I need to send chunks instead of all at once? Do I need to set up a buffer to receive the data? I thought you can send files of any size with TCP? Any recommendations? Thank you.