value = new String(b, 0, l, "UTF-8");
setValue(index, value, jdbcInstance(Types.VARCHAR));
}
public void setBinaryStream(int index, InputStream x, int length) throws IOException {
WrappingByteSource value;
byte[] b = new byte[length];
int l = x.read(b);
value = new WrappingByteSource().wrap(b, 0, l);
setValue(index, value, jdbcInstance(Types.VARBINARY));
}