get hex array from byte array