Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Dec 8, 1999

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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date