Well, basically this is what I need. But how to do it in practice? Do you have or know good examples of this? I'm not so familiar with byte-operations.
Well, the lowest order byte is....
byte loByte = (byte) (longvar & 0xff);
And the next higher byte is ....
byte nextByte = (byte) ((longvar >> 8) & 0xff)
And... the rest you can figure out. BTW,
you should get up to speed on the bit shifters and operators.
Henry