How does your datareceived eventhandler look?

This is one of the major drawbacks of sending files on the same connection as other data, if the value of the message delimiter is contained anywhere within the file data (which is very likely), it simply wont work as it should.
I've provided examples for file transfers in this thread, that uses a separate connection for each file.