I have an object variable that I want to store in a binary file. If I give the object variable a number, it will store it without a header. If it is a short string it will store a one-byte header with the length of the string. However, I am not sure what it does with long strings.

I gave it a 868 byte string (as an example) which is equivalent to
64 03 in hexadecimal (in my hex editor)

But the header it gave was:
E4 06

Three bits are different. I can understand the 6 turning into an E, but not the rest.

Also, if you were to store binary data, like say a picture in an object variable would it have a header of some kind?