Thank you for the reply... However I fixed my problem by myself. It was either c++ or java reading the bytes in a fishy order... reverse I think! Well thank you anyway.
It's nice to know theres always someone there trying to help ya out!
Adam
EDITED: Oh yeh before I forget I got another problem! Do you know the equivilant of the java triple right shift operator ie. >>>?