Make it a little endian stream?
Trust me, i've tried all this.
I got around the problem in te end by patching the phone with the wrong res with data from a file that had the correct res. itworked.
My binary read/write code worked, they were just stored oddly in the file. Waste of time too since the "fix" I was hoping to apply didn't work!
Anwyay, disregard this thread from here, i have resolved the issue. :-)