We have our own DataAccess library built upon the Microsoft Enterprise Data Access block.
I have stored procedure that takes binary file content as input parameter and store it into DB.
byte[] imageFileByteArray = this.GetByteArrayFromFile(imageFile);
this.dataAccess.AddCmdParameter("DOCIMAGE", System.Data.DbType.Binary, imageFileByteArray);
This code is working fine when using SQL database, But when I switched to Oracle, I get the exception saying that "Wrong type of parameter"
In oracle db, the DOCIMAGE column is declared as BLOB field.
Why inferred Dbtype.Binary is not working for oracle?