While reading the manual I fall over this here:
Originally Posted By: Online Manual
If the length of the buffer is not known to the client, it can be stored in a byte, short, or long at the beginning of the buffer.
http://www.conitec.net/beta/send_data.htm

How can I manage this - storing as well as reading?