当前位置: 首页 > 图文教程 > 数据库 > Oracle > java.sql.SQLException: 内部错误: Unable to construct a Datum from the specified input

Oracle
MySQL安全性指南 (1)(转)
MySQL安全性指南 (2)(转)
MySQL安全性指南(3)(转)
Microsoft SQL Server 7.0安全问题
如何删除oracle10g中的垃圾表?
Oracle诊断工具-RDA使用概述
开启企业殿堂的钥匙 Oracle服务器的安装
Oracle数据库监听配置
ORACLE的客户端如何连接到数据库
Linux 9i下Dataguard配置
在RHEL4U4上安装Oracle10GS2
Oracle开发(一).Windows下配置使用ProC
Oracle数据库开发(二).Linux下配置使用ProC
解决ora-01861文字与格式字符串不匹配
Ruby on Rails 连接 Oracle 数据库实践
oracle 10G在fedora2上的安装
oracle 透明网关环境的建立
Oracle9i iSQL*PLUS的配置过程
oracle安装过程中无法换盘
Oracle 10g RAC之网络设置

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-13   浏览: 84 ::
收藏到网摘: n/a

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.