I've been searching for a few days now and getting nowhere - or going round in circles! Same question asked in a lot of places but no real answer that nails it (that i can see)
I have an MS Access 2010 database and one of its fields is set as OLE object and has pictures in it. How can I convert the picture stored in the OLE object to a regular picture (jpg, gif or whatever) to use in my Windows Forms application?
- There is no option not to use the MS Access database as its used for other things
- The pictures have been added to MS Access via paste method
- In my WinForms app I have code that successfully connects to and reads the database fields therein, including retrieving an array of byte that is the OLE object
- I have tried writing that array to a memory stream and generating an image from that stream but no luck
My understanding is that from this array i have to strip the OLE wrapper, but that's where my understanding ends, unfortunately.
I have an MS Access 2010 database and one of its fields is set as OLE object and has pictures in it. How can I convert the picture stored in the OLE object to a regular picture (jpg, gif or whatever) to use in my Windows Forms application?
- There is no option not to use the MS Access database as its used for other things
- The pictures have been added to MS Access via paste method
- In my WinForms app I have code that successfully connects to and reads the database fields therein, including retrieving an array of byte that is the OLE object
- I have tried writing that array to a memory stream and generating an image from that stream but no luck
My understanding is that from this array i have to strip the OLE wrapper, but that's where my understanding ends, unfortunately.