public void setBinaryStream(int parameterIndex, java.io.InputStream inputStream, int length) throws  SQLException { XSQLVAR sqlvar = fixedStmt.getInSqlda().sqlvar[parameterIndex - 1]; if ((sqlvar.sqltype & ~1) != GDS.SQL_BLOB){ throw new SQLException("Not a Blob, type: " + sqlvar.sqltype); }  FBBlob blob = (FBBlob)c.createBlob(); blob.copyStream(inputStream, length); sqlvar.sqlind = 0; sqlvar.sqldata = new Long(blob.getBlobId());
public void setBinaryStream(int parameterIndex, InputStream inputStream, int length) throws SQLException {  getField(parameterIndex).setBinaryStream(inputStream, length);
    public void setBinaryStream(int parameterIndex, java.io.InputStream inputStream,             int length) throws  SQLException {        XSQLVAR sqlvar = fixedStmt.getInSqlda().sqlvar[parameterIndex - 1];        if ((sqlvar.sqltype & ~1) != GDS.SQL_BLOB){            throw new SQLException("Not a Blob, type: " + sqlvar.sqltype);        }        //get a new blob object        FBBlob blob = (FBBlob)c.createBlob();        blob.copyStream(inputStream, length);        sqlvar.sqlind = 0;        sqlvar.sqldata = new Long(blob.getBlobId());    }