java.sql.SQLException: 內(nèi)部錯(cuò)誤: Unable to construct a Datum from the specified input
更新時(shí)間: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.
相關(guān)文章
Oracle存儲(chǔ)過程之?dāng)?shù)據(jù)庫中獲取數(shù)據(jù)實(shí)例
介紹Oracle數(shù)據(jù)庫中獲取數(shù)據(jù)的存儲(chǔ)過程示例 ,在表A取得的數(shù)據(jù)插入另一個(gè)表B中2008-09-09Oracle 自增(auto increment) 或 標(biāo)識(shí)字段的建立方法
SQL SERVER 和 ACCESS 以及 MYSQL 中, 都有一種 自增字段, 通常被用來做 主鍵 或 索引鍵, 但是 ORACLE 中,確并沒有提供這種字段類型(實(shí)際并不是一種字段類型) ,但我們確經(jīng)常需要這個(gè)功能。2008-11-11ORACLE LATERAL-SQL-INJECTION 個(gè)人見解
最近忙啊忙啊的,今天終于有點(diǎn)點(diǎn)時(shí)間抽出來看看技術(shù)文章了,最近國外又出了關(guān)于新型ORA注入技術(shù)的PAPER,趕緊測試,主要是出現(xiàn)在SQL語句字符拼 接的時(shí)候,DATE類型轉(zhuǎn)換為VARCHAR 以及 NUMBER轉(zhuǎn)換為VARCHAR加入的格式字符出現(xiàn)問題。2008-05-05在Oracle PL/SQL中游標(biāo)聲明中表名動(dòng)態(tài)變化的方法
在Oracle PL/SQL中游標(biāo)聲明中表名動(dòng)態(tài)變化的方法...2007-04-04