java.sql.SQLException: 内部错误: Unable to construct a Datum from the specified input
更新时间:2008年09月18日 16:54:23 作者:
Unable to construct a Datum from the specified input的解决方法
Q:
I am working with Oracle database 8.1.7 and I have written a JAVA code to update the table which contains one BLOB field .
I am using updateBinaryStream method of resultset to update the BLOB field but it is failing after giving following exception
java.sql.SQLException: Internal Error: Unable to construct a Datum from the specified input
Can anyone help me in this regard ?
A:
That's because you are using FileInputStream. FileInputStream doesn't implement all methods of java.io.InputStream. Use java.io.File instead.
I am working with Oracle database 8.1.7 and I have written a JAVA code to update the table which contains one BLOB field .
I am using updateBinaryStream method of resultset to update the BLOB field but it is failing after giving following exception
java.sql.SQLException: Internal Error: Unable to construct a Datum from the specified input
Can anyone help me in this regard ?
A:
That's because you are using FileInputStream. FileInputStream doesn't implement all methods of java.io.InputStream. Use java.io.File instead.
相关文章
Oracle 自增(auto increment) 或 标识字段的建立方法
SQL SERVER 和 ACCESS 以及 MYSQL 中, 都有一种 自增字段, 通常被用来做 主键 或 索引键, 但是 ORACLE 中,确并没有提供这种字段类型(实际并不是一种字段类型) ,但我们确经常需要这个功能。2008-11-11ORACLE LATERAL-SQL-INJECTION 个人见解
最近忙啊忙啊的,今天终于有点点时间抽出来看看技术文章了,最近国外又出了关于新型ORA注入技术的PAPER,赶紧测试,主要是出现在SQL语句字符拼 接的时候,DATE类型转换为VARCHAR 以及 NUMBER转换为VARCHAR加入的格式字符出现问题。2008-05-05
最新评论