I can't make the server app because someone else is doing this.The server app is a C++ application.And it sends the String using sprintf.So i think that it is a /n-terminated string.The QByteArray can receive everything?Even if it is not a qt application?