java.sql.SQLException: 内部错误: Unable to construct a Datum from the specified input

java.sql.SQLException: 内部错误: Unable to construct a Datum from the specified input,第1张

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.

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/sjk/890435.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-14
下一篇 2022-05-14

发表评论

登录后才能评论

评论列表(0条)

保存