When I read first 4 bytes with python code
len = fobj.read(4)
I got 'o\xf2\x00\x00'
. This should be an int32
, and when I read the file with other tool (matlab
, for example), it gives 62063
.
Could anybody give any hints on how I can convert the hex
string into an int
in python?
I've read this hex string to int conversion discussion, but found no help.
Thank you for any suggestion!