In Java, how do I take a byte[] array and remove the first 16 bytes from the array? I know I might have to do this by copying the array into a new array. Any examples or hel
See Arrays class in the Java library:
Arrays
Arrays.copyOfRange(byte[] original, int from, int to)
from is inclusive, whereas to is exclusive. Both are zero based indices, so to remove the first 16 bytes do
from
to
Arrays.copyOfRange(original, 16, original.length);