public byte[] readByteArray(String fieldName) throws IOException { final int currentPos = in.position(); try { int pos = readPosition(fieldName, FieldType.BYTE_ARRAY); in.position(pos); return IOUtil.readByteArray(in); } finally { in.position(currentPos); } }