Binary Field from .mdb

R

Randal Ferguson

All,

Is there any way to write a program to retrieve a bitmap from a field and
save it as a separate .bmp file? Any sample code (VB, C, etc.) anywhere?

Thanks,
Randal Ferguson
 
E

Exponent

It depends how the image was stored.

If it is stored as raw binary data then you can extract the original data quite easily using GetChunk.


If it was stored using OLE Embedding then things are more complicated. You can't get at the original raw
data, but the image can be rendered to a metafile then saved as bmp, jpg etc. Note that any compression
in the original image (eg jpeg compression) has been discarded, so re-saving as jpeg will be lossy, and
any metadata (such as EXIF/IPTC) will be lost.

A solution based on this approach is available from Stephen Lebans' site:
http://www.lebans.com/oletodisk.htm
 

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

Top