I'm trying to get the filesize of the self by reading the header. With files under 1 mb that works fine, but for some reason files above 1 mb don't give me the proper file size.Sponsored Links
HeaderSize (RED) = 0x0580 = 1408
EncryptedSize (BLUE) = 0x017078 = 94328
Total FileSize = HeaderSize + EncryptedSize = 95736
As you can see this is correct but when i do the same with a file over 1 mb I get this.
HeaderSize (RED) = 0x0500 = 1280
EncrtpyedSize (BLUE) - 0x359398 = 3511192
Total FileSize = HeaderSize + EncryptedSize = 3512472
And that's not right, does anyone know what I'm doing wrong?