@Override
  public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException {
    byte[] bytes = null;
    try {
      bytes = ReadWriteIOUtils.readBytes(x, length);
      StringBuilder sb = new StringBuilder();
      for (byte b : bytes) {
        sb.append(String.format("%02x", b));
      }
      this.parameters.put(parameterIndex, "X'" + sb.toString() + "'");
    } catch (IOException e) {
      throw new SQLException(Constant.PARAMETER_SUPPORTED);
    }
  }
save the SQL parameters as (paramLoc,paramValue) pairs.
iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBPreparedStatement.java