您现在的位置是:网站首页> 编程资料编程资料
java.sql.SQLException: 内部错误: Unable to construct a Datum from the specified input_Oracle应用_
                     2023-05-27
                701人已围观
                
                2023-05-27
                701人已围观
            
简介 java.sql.SQLException: 内部错误: Unable to construct a Datum from the specified input_Oracle应用_
                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.
                
                
        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.
相关内容
- Oracle存储过程入门学习基本语法_Oracle应用_
- Oracle存储过程之数据库中获取数据实例_Oracle应用_
- Oracle常用dump命令,记录一下备查。_oracle_
- oracle chm帮助文件下载_oracle_
- Oracle入侵常用操作命令整理_oracle_
- ORACLE LATERAL-SQL-INJECTION 个人见解_Oracle应用_
- oracle下巧用bulk collect实现cursor批量fetch的sql语句_oracle_
- oracle的一些tips技巧_Oracle应用_
- oracle命令行删除与创建用户的代码_oracle_
- oracle下实现恢复一个丢失的数据文件的代码_oracle_
 
                                
                                                         
                                
                                                         
                                
                                                         
 
    