|
-
Dec 19th, 2006, 11:25 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Image Field in a DataSet?
I have added an Image field to a table (SQL Server 2000) against which I have a Typed DataSet defined. So I added a new column to my DataTable (in my dataset) of type System.Byte and when I attempted to fill the DataSet, I got an error:
"Inconvertible type mismatch between SourceColumn 'Icon_im' of Byte[] and the DataColumn 'Icon_im' of Byte."
I don't see how to defined my DataSet column as a byte array.
If I can't use a typed DataSet to retrieve the image data, how should I then retrieve it?
And while I'm here, how would I then convert this byte array into an image (to display in a picture box)?
Last edited by simonm; Jan 3rd, 2007 at 04:51 AM.
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|