Thank you for the answers. I've uploaded a file here which contains the raw data i receive:
I read your link Endurion and it seems you are correct! I was thinking along these lines in the beginning but when Reading 8000 bytes it landed me in the middle of the XML, however the number was encoded in hexadecimal, which is 32767.
Thank you Glass_Knife and Endurion for your help