Aaargh I feel like strangling the guy that created that map format.
I'm now perfectly able to read 64*64, 128*128, 192*192, 256*256 and 320*320 maps. Yet when I try to read a 1000*1000 one I crash out with an end of stream. So AGAIN something special is going on when the size of the maps increase !!!!!!!!!!!