Can not insert BLOB
Can not insert BLOB
Hi, I am using the following code to insert a byte[] to a blob field.
But I get a message like "ORA-00600: internal error code, arguments: [12259], [], [], [], [], [], [], []" while executing the command.
The code is as follows
CoreLab.Oracle.OracleCommand SQLCommand = new CoreLab.Oracle.OracleCommand();
SQLCommand .Connection = DBConnection;
SQLCommand .Parameters.Add("Dos", OracleDbType.Blob);
SQLCommand .Parameters["Dos"].Value = Value;
SQLCommand .CommandText = "INSERT INTO TableName (Dos) VALUES (:Dos)";
SQLCommand .ExecuteNonQuery();
But I get a message like "ORA-00600: internal error code, arguments: [12259], [], [], [], [], [], [], []" while executing the command.
The code is as follows
CoreLab.Oracle.OracleCommand SQLCommand = new CoreLab.Oracle.OracleCommand();
SQLCommand .Connection = DBConnection;
SQLCommand .Parameters.Add("Dos", OracleDbType.Blob);
SQLCommand .Parameters["Dos"].Value = Value;
SQLCommand .CommandText = "INSERT INTO TableName (Dos) VALUES (:Dos)";
SQLCommand .ExecuteNonQuery();
You can encounter this problem in Direct mode if you try to insert BLOB value to the LONG field, or it may be a problem of OraDirect .NET with particular Oracle server. Please specify the version of Oracle server, database charset. Possibly this depends on inserting data. If it is a problem of OraDirect .NET we will fix this.