当前位置: 首页 > 新闻动态 > 技术教程

java.sql.SQLException: 内部错误: Unable to construct a Datum

作者:php中文网 浏览: 发布日期:2016-06-07
[导读]:Unable to construct a Datum from the specified input的解决方法

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://www.sczxchw.cn/news/549334.html

扫一扫高效沟通

多一份参考总有益处

免费领取网站策划SEO优化策划方案

请填写下方表单,我们会尽快与您联系
感谢您的咨询,我们会尽快给您回复!