Yes Exactly, I already solved this problem a few hours back but thanks alot for being so concerned from heart to help me. What I did is: if (messageSize > messageDataBuffer.Length) readByteCount = dataStream.Read(messageDataBuffer, 0, messageDataBuffer.Length); else readByteCount = dataStream.Read(messageDataBuffer, 0, messageSize); :-D All is working perfect now :laugh: Thanks alot again!!! Please add me in you Msn buddies if you feel comfortable :) rizwansharp@hotmail.com Best Regards, Rizwan Ahmed