Well, fighting big vs little endian stuff is hard. I try really hard to avoid it.
The second problem that you may be seeing is that Java bytes are signed, and there is no concept in Java of an unsigned byte. This normally is noticed when folks are trying to do cryptographic code, since all the the standards are defined on unsigned octets (aka unsigned bytes of 8 bit values).
If you read the file using byte functions, does it work? Reading it 32 bits at a time is likely to lead to madness.
Joined: Sep 19, 2009
I read the file in fine to a byte array (fairly quick) and I can get to the specific sets of 3 byte values that I need to flip and convert. The issue is trying to flip them correctly and converting to int and/or double so I can use them. I was amazed I was able to read the file in without a problem. See only certain sets of bytes groups represent floating point values and the rest are strings and counters that can be used from the file (and device) without a problem since they are just straight conversions to int or String.