setBinaryStream(parameterIndex, new ByteArrayInputStream(x), x.length);
XSQLVAR sqlvar = fixedStmt.getInSqlda().sqlvar[parameterIndex - 1]; if (x.length > sqlvar.sqllen) { throw new DataTruncation(parameterIndex, true, false, x.length, sqlvar.sqllen); } if ((sqlvar.sqltype & ~1) == GDS.SQL_TEXT) { if (x.length == sqlvar.sqllen) { sqlvar.sqlind = 0; sqlvar.sqldata = x; return; }  byte[] padded = new byte[sqlvar.sqllen]; System.arraycopy(x, 0, padded, 0, x.length); sqlvar.sqlind = 0; sqlvar.sqldata = padded; return; } if ((sqlvar.sqltype & ~1) == GDS.SQL_VARYING) { sqlvar.sqlind = 0; sqlvar.sqldata = x; return; }  if ((sqlvar.sqltype & ~1) == GDS.SQL_BLOB) { setBinaryStream(parameterIndex, new ByteArrayInputStream(x), x.length); }
    public void setBytes(int parameterIndex, byte[] x) throws  SQLException {        //Only works for blobs right now        setBinaryStream(parameterIndex, new ByteArrayInputStream(x), x.length);    }