As is stated in the source code, that solution only saves to BMP files. You
can either use a third aprty app to mass convert your saved BMP images or
take a look here:
http://www.lebans.com/loadsavejpeg.htm
A97LoadSaveJpeg.zip contains a database demonstrating how to use the Intel
Jpeg library with Access. Jpeg files are stored in their original compressed
state within a Binary OLE avoiding the Ole object "bloat" issue. Here is the
A2K version: A2KLoadSaveJpeg.zip
A standard Image control is used to display the contents of the field
containing the Jpeg file. The Intel DLL is used to load the contents of the
field directly into memory bypassing the need to create a temporary disk
file.
The contents of the Image control, containing any supported source Image
format, can be saved to disk as a Jpeg file.
Very large Jpeg files that could not be loaded into the standard Access
Image control directly can now be loaded through the Intel Jpeg library.
Version 1.9
Fixed Sample Report. Added A2K version.
Version 1.2
Fixed File Dialogs. Added control to resize loaded Jpegs. Added sample
Report. Starting to clean up the code!
Version 1.1
Any Image file that can be loaded into the standard Image control can now be
saved to a disk Jpeg file. Version 1.0 was restricted to Bitmap files.
Version 1.0
Initial release.
--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
<lg********@gmail.comwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
>I am using Stephen Lebans Picturebox97 (www.lebans.com) and use the
pb.SavetoFile function included.
The SavetoFile function saves my image as a bitmap file size 352 KB.
Potentially there will be several hundred images saved at a large and
undoable disk space cost.
I have also tried the SavetoFile function to save the image as a jpg
file but the file size is still 352 KB.
However if I open the Image file for editing with mspaint and save as
jpg the file size is reduced to 9 KB.
Does anyone know of a way to do this programatically?
Perhaps the SavetoFile function can be set to a different file save
size..?