广

oracle数据库

  • MYSQL
  • MSSQL
  • Redis
  • MongoDB
  • oracle数据库
  • 数据管理

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

    2018-04-25 21:45:53 次阅读 稿源:互联网
    广告
    全网推广平台,软文发布
    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.

    一起学吧部分文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与一起学吧进行文章共享合作。

    广告
    广告
    广告
    广告