if (((getXsqlvar(columnIndex).sqltype & ~1) != GDS.SQL_TEXT)
if ((getXsqlvar(columnIndex).sqltype & ~1) == GDS.SQL_BLOB) { setWasNullColumnIndex(columnIndex); InputStream in = getBinaryStream(columnIndex); ByteArrayOutputStream out = new ByteArrayOutputStream(); try { byte[] buffer = new byte[512]; while (in.available() > 0) { int count = in.read(buffer); out.write(buffer, 0, count); } } catch (java.io.IOException ex) { throw new SQLException("Blob I/O error"); } return out.toByteArray(); } else if (((getXsqlvar(columnIndex).sqltype & ~1) != GDS.SQL_TEXT)
    public byte[] getBytes(int columnIndex) throws  SQLException {        if (((getXsqlvar(columnIndex).sqltype & ~1) != GDS.SQL_TEXT)             &&((getXsqlvar(columnIndex).sqltype & ~1) != GDS.SQL_VARYING)) {            throw new SQLException("Wrong type for column " + columnIndex + "type should be" + getXsqlvar(columnIndex).sqltype);        }        setWasNullColumnIndex(columnIndex);        return (byte[])row[columnIndex - 1];    }