I really can't believe what I am asking about this, but all I read is either converting from int to byte, or a string to byte, or something like that. I am literally trying to insert a byte into a byte array. Or, for that matter, initialize a byte array with bytes, not ints.
byte[] header = {0x8b, 0x1f, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03};
The compiler complains that they are ints. I am trying to insert bytes.
source share