|
-
Feb 13th, 2006, 11:13 AM
#1
Thread Starter
Junior Member
Need help: retrieving an image from Access and give it to a PictureBox
Hello all,
Don't know if this is the right place to ask but I figure it might be the closest.
I have an Access database (.mdb) and one of the tables contain binary image files. I want to retrieve these images and put them into a PictureBox object. I am using the get_Item(X) method of OleDbDataReader class, which returns an generic Object (and using watch, it is a ubyte array).
How to I convert this to an Image object so I can pass it to the PictureBox set_Image method? Or is there a better way to do things?
Any help would be greatly appreciated.
Regards
-
Feb 13th, 2006, 11:46 AM
#2
-
Feb 14th, 2006, 08:54 PM
#3
Frenzied Member
Re: Need help: retrieving an image from Access and give it to a PictureBox
Not sure, but I believe you can create a byte array and then use the toolkit to create an image from that.
-
Feb 16th, 2006, 01:27 PM
#4
Re: Need help: retrieving an image from Access and give it to a PictureBox
If not the Toolkit, then ImageIO. However, I believe you're in the wrong forum. There's no datatype called ubyte in Java, so either you're using C# (has its own forum) or J# (questions asked best go to generic .Net).
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
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
|