|
|
|
C# + SQLServer 2000
|
|||
|---|---|---|---|
|
#18+
Подскажите как с в С# пихнуть объек тита 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. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.12.2005, 16:31 |
|
||
|
C# + SQLServer 2000
|
|||
|---|---|---|---|
|
#18+
Foto.Image возвращает вам объект типа Image. А в параметр хранимой процедуры следует класть byte[]. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.12.2005, 17:48 |
|
||
|
|

start [/forum/topic.php?fid=17&fpage=113&tid=1353512]: |
0ms |
get settings: |
6ms |
get forum list: |
8ms |
check forum access: |
1ms |
check topic access: |
2ms |
track hit: |
32ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
34ms |
get tp. blocked users: |
1ms |
| others: | 206ms |
| total: | 299ms |

| 0 / 0 |
