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 LATERAL-SQL-INJECTION 个人见解
最近忙啊忙啊的,今天终于有点点时间抽出来看看技术文章了,最近国外又出了关于新型ORA注入技术的PAPER,赶紧测试,主要是出现在SQL语句字符拼 接的时候,DATE类型转换为VARCHAR 以及 NUMBER转换为VARCHAR加入的格式字符出现问题。2008-05-05
Oracle row_number() over()解析函数高效实现分页
Oracle row_number() over()解析函数高效实现分页,需要的朋友可以参考下。2011-11-11


最新评论