title: ORA-01460: unimplemented or unreasonable
body: <p>I try to run this query in oracle database but unfortunately I receive this error please help me :(</p>
  
  <blockquote>
    <p>java.sql.SQLException: ORA-01460: unimplemented or unreasonable conversion requested 
    right now that problem solved and I have an other exception:
    I change this line</p>
  </blockquote>
  
  <pre><code> pstmt.setBinaryStream(7, fis, (int) file.length());
  </code></pre>
  
  <p>with</p>
  
  <pre><code> pstmt.setBinaryStream(7, fis, (long) file.length());
  </code></pre>
  
  <p>Exception in thread "AWT-EventQueue-0" java.lang.AbstractMethodError: oracle.jdbc.driver.OraclePreparedStatement.setBinaryStream(ILjava/io/InputStream;J)V</p>
  
  <p>for text file there is no issue, but when I try to upload a JPG file I receive this error.</p>
  
  <pre><code>    PreparedStatement pstmt = 
                            conn.prepareStatement("INSERT INTO PM_OBJECT_TABLE( " +
                            "N_ACTIVITY_ID, V_NAME,N_SIZE, D_MODIFY,N_CATEGORY, N_NODE_ID ,O_OBJECT) " +
                            " VALUES ( ? , ? , ? , ? , ? , ? ,?)");
                  pstmt.setLong(1, N_ACTIVITY_ID);
                  pstmt.setString(2, file.getName());
                  pstmt.setLong(3, file.length());
                  java.util.Date date = new java.util.Date(); 
                  java.sql.Date sqlDate = new java.sql.Date(date.getTime()); 
                  pstmt.setDate(4,sqlDate);
                  pstmt.setInt(5, N_CATEGORY);
                  pstmt.setLong(6, N_NODE_ID);
                  pstmt.setBinaryStream(7, fis, (int) file.length());
                  pstmt.executeUpdate();            
  </code></pre>