Notes on Reference Citations - Version 2.70, by Dr. Herong Yang
problem in insert into database
'Inserting BLOB Values with setBinaryStream() Method' tutorial was cited in a StackOverflow forum post in 2011.
The Inserting BLOB Values with setBinaryStream() Method tutorial was cited in a StackOverflow forum post in 2011.
Subject: problem in insert into database Date: Apr 11, 2011 Author: rima Source: http://stackoverflow.com/questions/5626793 /problem-in-insert-into-database > Dear friends I try to run this query in oracle database but > unfortunately I receive this error please help me :( > > 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 > > pstmt.setBinaryStream(7, fis, (int) file.length()); > > with > > pstmt.setBinaryStream(7, fis, (long) file.length()); > > Exception in thread "AWT-EventQueue-0" java.lang.AbstractMethodError: > oracle.jdbc.driver.OraclePreparedStatement.setBinaryStream(ILjava/io > /InputStream;J)V > > for text file there is no issue, but when I try to upload a JPG file > I receive this error. ... javanna I have same problem that this person faced herongyang.com/JDBC /Oracle-BLOB-setBinaryStream.html but I try all of them I have problem with all of them~! ...
Table of Contents