it doesn't help. it gives terrible large numbers.

is the byte array is "47dannie", reading 4 bytes would I think, read 47da, next time it would read nnie, converting them into integers.
Qt Code:
  1. int len;
  2. char *data;
  3. client.read((char*)&len, 4);
  4. client.read(&data[0], len);
To copy to clipboard, switch view to plain text mode 

this is not correct.