for example i have an image of 666bytes;
I HAVE FIND THE FOLLOWING IN THIS FORUM: 85 9a: size of data (jpeg image) encoded as bytes where each of them contain 7 bits of the size and most significant bit set to 1;
BUT 666 IS 29A IN HEXADECIMAL, AND I I PUT THE MOST SIGNIFICANT BIT SET TO 1, THE RESULT IS: 829A, ARE THERE SOME ERRORS?
RE: how i can encode the size of the data?
Encoding of the image size:
encoding of image size 666 is 85 1A.
2 9A -> 0010 1001 1010 -> 0 0101 001 1010
each octet contains 7 bits of the actual number
and the most significant bit is set to 1, last
octet begins with an added zero.
-> 1 000 0101 0 001 1010
M, Forum Nokia