Using LoadJpegGif gives 'Invalid format' for 2MB Bitmap file

G

google-post

In general I've had great luck using Stephen Lebans' LoadJpegGif (v5.0)
when loading JPEG, GIF, and BMP files onto Access97 forms. However, I
have a specific bitmap that gives an error "Invalid picture format" on
LoadPicture.

I find that I get the "unsupported picture format" error when trying to
manually load the picture on a form, although the browse preview looks
fine (WinXP), and the bitmap looks fine in Paint. The Bitmap is
approx. 800x800 pixels, 24-bit color.

I've been able to work-around the problem by converting the image to
GIF (with Giffy), but wondered if there was a better workaround?

Thanks in advance,
 
S

Stephen Lebans

What program produced the Bitmap?
Try loading the imge into MS Paint and then save it back out again. It may
be something as simple as the BMP Header contains a negative value for the
Width of the image.

What happens when you try to directly set the Picture property of the Image
control to this file?
--

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

google-post

Stephen said:
What program produced the Bitmap?
Try loading the imge into MS Paint and then save it back out again. It may
be something as simple as the BMP Header contains a negative value for the
Width of the image.

What happens when you try to directly set the Picture property of the Image
control to this file?
--

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

google-post

Stephen,
The bitmap was embedded in an mp3 file...so not sure what program
created the image. The first two characters of the file are "BM" but I
haven't looked into the rest of the BMP header.

Access still couldn't load the file after saving with Paint.

If I try to set the Picture property of the file, I get the message
"Microsoft Access doesn't support the format of the file...so it can't
load the picture."

The actual properties of the 2.03MB Bitmap picture are:
Width: 842pixels, Height 844pixels, Horizontal/Vertical Resolution
178dpi, Bit Depth 24, Frame Count 1.

Thanks,
John
 

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