Image Storage in Access 97

Image Storage in Access 97

I have an Access 97 database with an OLE Type field containing bitmaps loaded with the LoadPicture() function. This works fine and the images turn up as “Bitmap Image” when you look at the table’s datasheet within Access.

Using VB5 and RDO I want to load the data into a class and display it on a form. Everything I try fails! The datatype of the class property is variant. I’ve tried shoving the data into an Image, Picturebox, OLE, RTF, Clipboard even RTF OLE Embedded Object! All fail.

Here’s one very simple solution to your problem, you might want to consider keeping the picture in an external file and storing the path to the file in the database.


About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist