Code example for PreparedStatement

Methods: setBlob

0
    public void set(PreparedStatement stat, Object obj, int i) throws SQLException {
        if (null == obj) {
            stat.setNull(i, Types.BLOB);
        } else { 
            Blob blob = (Blob) obj;
            stat.setBlob(i, blob);
        } 
    } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java