java.sql.SQLException: 内部错误: Unable to construct a Datum from the specified input
程序员文章站
2023-12-04 18:58:52
q: i am working with oracle database 8.1.7 and i have written a java code to update th...
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.
推荐阅读
-
java.sql.SQLException: 内部错误: Unable to construct a Datum from the specified input
-
java.sql.SQLException: 内部错误: Unable to construct a Datum from the specified inpu
-
java.sql.SQLException: 内部错误: Unable to construct a Datum from the specified input
-
java.sql.SQLException: 内部错误: Unable to construct a Datum from the specified inpu
-
java.sql.SQLException: 内部错误: Unable to construct a Datum from the specified inpu
-
java.sql.SQLException: 内部错误: Unable to construct a Datum from the specified inpu
-
java.sql.SQLException: 内部错误: Unable to construct a Datum
-
java.sql.SQLException: 内部错误: Unable to construct a Datum
-
java.sql.SQLException: 内部错误: Unable to construct a Datum from the specified inpu
-
java.sql.SQLException: 内部错误: Unable to construct a Datum from the specified inpu