@Override
    public byte[] getValue(ResultSet rs, int startIndex) throws SQLException {
        return rs.getBytes(startIndex);
    }
{@code BytesType} maps byte[] to byte[] on the JDBC level

@author tiwe
querydsl-sql/src/main/java/com/querydsl/sql/types/BytesType.java