本文介绍了System.Data.OracleClient的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用System.Data.OracleClient命名空间而不是oracle.dataAccess在oracle数据库中插入图片,但这给了我该错误

{无法将参数值从OracleBinary转换为Byte []."}

请有人帮我解决这个问题

i tried to insert picture in oracle database using System.Data.OracleClient namespace not oracle.dataAccess but it gives me that error

{"Failed to convert parameter value from a OracleBinary to a Byte[]."}

please could any one help me in that

推荐答案

marjavic写道:
marjavic wrote:

失败将参数值从OracleBinary转换为Byte []

Failed to convert parameter value from a OracleBinary to a Byte[]



错误由其本身解释.

您的代码中进行了错误的强制转换.解决它.
进一步阅读: OracleBinary到字节[]的转换 [ ^ ]



Error explains it by itself.

Wrong casting is going on in your code. Resolve it.
Further read this: OracleBinary to Byte[] Conversion[^]



这篇关于System.Data.OracleClient的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-31 03:41