Voityk Igor
Дата: 19.12.2005 16:31:11
Подскажите как с в С# пихнуть объек тита PictureBox в поле типа Image
пишу так
SqlCommand command = new SqlCommand("mp_update_image",Connection);
command.CommandType = CommandType.StoredProcedure;
SqlParameter myParm = command.Parameters.Add("@p_id",SqlDbType.Int,0);
myParm.Value = 437;
SqlParameter myParm1 = command.Parameters.Add("@p_foto",SqlDbType.Image,0);
myParm1.Value = Foto.Image;
command.Connection.Open();
command.ExecuteNonQuery();
Выдает ошибку
Additional information: Object must implement IConvertible.