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

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

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

  2020-12-17 我要评论
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.

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们