If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Load Access Image with Delphi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-20-04, 19:47
Thread77 Thread77 is offline
Registered User
 
Join Date: Apr 2003
Posts: 17
Load Access Image with Delphi

Hello,

I have an Access 97 Database with a table that is storing images as OLE Objects. I need to view the image with Delphi (I'm using ADO) but no matter what I try I get an 'invalid bitmap' error. When I save the Access field to a flat file and view it with a hex editor, I can see it appears to be a DIB (I see the word 'DIB' near the top of the file). Does anyone have any sample code or a point of direction that I could take to get these images? I know it can be done because if I manually copy and paste the OLE field to MS Paint the image appears fine. Any help would be greatly appreciated, thanks!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On