devxlogo

Image Storage in Access 97

Question:
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.

Answer:
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.

Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.

See also  Seven Service Boundary Mistakes That Create Technical Debt

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.