How to bind an image object to the ObjectDataSource.

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top