I'm using MediaProjection to capture device screen continuously and after this capture is sent over Socket to server (that is a C# desktop application).
The trouble is that apparently the prefixed string is sent only one or two times, and after is sent only the image data (i think) and because this, on server side i have trouble to identify if is receiving the bitmap and the consequence is not receive updated bitmap.
Prefixed string sent by first time:
Prefixed string sent by the second time:
After this, apparently only image data is sent (and from here, the prefixed string not is received anymore):