System.Int64 iInt = 2864434397; // equal to AABBCCDD in hexadecimal System.Byte[] bByte = new System.Byte[4]; bByte[0] = Convert.ToByte(iInt/(256*256*256)); if (iInt/(256*256) <= 255) { bByte[1] = Convert.ToByte(iInt/(256*256)); } else { bByte[1] = Convert.ToByte((iInt/(256*256))%256); } if (iInt/(256) <= 255) { bByte[2] = Convert.ToByte(iInt/256); } else { bByte[2] = Convert.ToByte((iInt/256)%256); } bByte[3] = Convert.ToByte(iInt%256);Now this looks like a lot of work to simply convert, any comments are welcome.