您好,欢迎来到尚佳旅游分享网。
搜索
您的当前位置:首页java.sql.SQLException:内部错误:UnabletoconstructaDatum

java.sql.SQLException:内部错误:UnabletoconstructaDatum

来源:尚佳旅游分享网

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 © 2019- shangjiatang.cn 版权所有 湘ICP备2022005869号-4

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务