Hey Tony,
it's been a long time but if I remember correctly, when the OLE Server
inserts the Image into the OLE object field it can do so in basically
any manner it wishes to. For those files that I have examined, and
depending on the original Image format, the OLE field can contain:
1) An uncompressed Bitmap(DIB) of the Image for display purposes.
2) An uncompressed Bitmap(DIB) of the Image wrappedn within an Enhanced
Metafile.
3) A binary copy of the original file.
The problem is that this is private data and therefore subject to the
designs of the OLE Server. Sometimes a copy of the original file is
present sometimes not.
When the solution on my site exports the contents of the OLE field it
simply asks for a copy of the uncompressed Bitmap to be placed onto the
ClipBoard. I then use the Intel JPG library to save this to disk.
By coincidence, I have spent the last 24 hours working with the
FreeImage library and hooking it up to a standard Access Image control.
It supports loading/saving to almost all of the popular raster Image
formats. I'll post the code to hookup the FreeImage DLL to an Image
control so a developer could then specify basically any raster format
they desire when using my OleExport routines.
--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Tony Toews" <tt****@teluspl anet.net> wrote in message
news:q6******** *************** *********@4ax.c om...
"Larry Linson" <bo*****@localh ost.not> wrote:
But why? I mean why does the original post
have to live with jpg or bmp files. In my
ignorance I would've thought that OLE
Objects contain a bit of header information,
Because Stephen didn't sign up to write a "general save an OLE Object
to anyfile form of your choosing" software package. That would be a pretty
tallorder for someone doing some freebie software just to satisfy his own
interests, now wouldn't it?
Umm, yeah but ....
I'm only trying to understand why the format of the file saved in the
OLE object in a table is any different than the file format of the object in a file on
the hard drive.
Besides Stephen thrives an challenges. <smile>
Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm