O
Ola Myrgart
Hi !
I´ve this code in my application for checking null values when inserting
a [BinaryArray] (picture) into my SQL DB:
If (ImageFile.PostedFile.ContentLengt =< 0) then
sqlCommand.Parameters.Add("@Bild", sqlDbType.Image).Value =
System.DBNull.Value
Else
sqlCommand.Parameters.Add("@Bild", sqlDbType.Image),Value = byteData
End If
I get a errormessage. Any suggestions how to solve this I would be much
greatful..!
The code works fine if I apply it to ordinary textfields controls like
name.txt but not with the ImageFile - Why ?
OM "Myggan"
I´ve this code in my application for checking null values when inserting
a [BinaryArray] (picture) into my SQL DB:
If (ImageFile.PostedFile.ContentLengt =< 0) then
sqlCommand.Parameters.Add("@Bild", sqlDbType.Image).Value =
System.DBNull.Value
Else
sqlCommand.Parameters.Add("@Bild", sqlDbType.Image),Value = byteData
End If
I get a errormessage. Any suggestions how to solve this I would be much
greatful..!
The code works fine if I apply it to ordinary textfields controls like
name.txt but not with the ImageFile - Why ?
OM "Myggan"