The stored procedure used by this function returns the Image ID, which is caught by the “Return Value” parameter of VB. As expected, the converter produced the following line, which was not accepted by the VS 2005 compiler.
//int result =
System.Convert.ToInt32(Conversion.Fix(cmdAdd.Parameters["@RETURN_VALUE"].Value));
Therefore, I commented out this line and changed the ExecuteNonQuery function to receive the integer, which is the number of row affected and used as the return value.
I am now testing this converted function to see whether this converted function works ok by inserting the TIMEO Logo image, which is taken from my deceased dog Coty. The Image posting function worked as expected.