java.sql.SQLException: 内部错误: 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.

(0)
上一篇 2022年3月22日
下一篇 2022年3月22日

相关推荐