Storing an image in an RTF Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form with an RTF control. It can contain one or more images along
with text. The result is stored in a memo field in a table. As a record, the
field occupies about 200K. If I save the contents as an RTF file, the size
reduces to about 100K. If I save the file a jpg, the size reduces to about
30K. Is there a way to reduce the size of the storage footprint in the
Access table?

I don't need great resolution. I am capturing images from the screen and
expect the images to be displayed in the Access form that is sufficiently
readable.
 
If I remember correctly, the JPG is inserted an OLE Image. This results in,
at the very least, a copy of the image being stored as an UNCOMPRESSED
Bitmap(actually, a DIB wrapped within a Metafile) and a Preview image, again
an uncompressed bitmap. Basically double the fun for your money.

When saved to an RTF disk file, the preview is removed from the file prior
to writing to disk..

The only solution would be for you to modify the resolution(and perhaps
color depth) of the original image. I would work strictly with Bitmaps and
avoid Jpeg.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Back
Top