I understand what you are saying... thanks fot answering.
The problem I have is that the QByteArray is passed to the respective function to be treated before I was able to store all the data in it.
Example:
A client sends an image. The size of the image is variable, but in this case lets say 5000 bytes.
The server starts receiving the image, but it only received 1250, so the server should wait and append the rest of the image to the QByteArray.
Is there a function in QTcpSocket that tells me the total size of the package ??? in this case will be 5000.
Bookmarks