Pass byte[] to native Core