J
Jianwei Sun
I had a question on how to bind an image object to the ObjectDataSource.
Basically, I use an ObjectDataSource to insert a record to sql server. I
want to include an image object as a parameter in the record I want to
insert.
I want to find right way to construct the parameter object.
Something like that:
ObjectDataSource odsTest;
odsTest.InsertParameters.Add( "ImageObject" , TypeCode.Object, ??? (I
want to put a byte array here, but it only takes a string object).
Any input.
Thanks,
John.
Basically, I use an ObjectDataSource to insert a record to sql server. I
want to include an image object as a parameter in the record I want to
insert.
I want to find right way to construct the parameter object.
Something like that:
ObjectDataSource odsTest;
odsTest.InsertParameters.Add( "ImageObject" , TypeCode.Object, ??? (I
want to put a byte array here, but it only takes a string object).
Any input.
Thanks,
John.