欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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.