title: Insert xml file into XMLTable using JDBC
body: <p>I have created a XMLType table in Oracle. I am trying to insert an XML file into the table using JDBC. It is throwing - </p>
  
  <blockquote>
    <p><code>ORA-00932: inconsistent datatypes: expected - got BINARY</code></p>
  </blockquote>
  
  <p>The code is -</p>
  
  <blockquote>
  <pre><code>       OraclePreparedStatement  statement = (OraclePreparedStatement) getConnection().prepareStatement
         ("insert into person values(?)");
         FileInputStream fileinp =  new FileInputStream(file);
         statement.setBinaryStream(1, fileinp, fileLength);      
         statement.executeUpdate();
  </code></pre>
  </blockquote>