Solved

Need to create BLOB from JPEG images to store in Access DB and Display on Form

Posted on 2013-05-22
2
536 Views
Last Modified: 2013-06-07
I have an access 2007 application within which I would like to display pictures (images) of records on a form.  I would like the images to be stored in the db table (i.e. as OLE Objects), and for this, I understand that I need to store them as BLOBs.  My question is, how do I convert JPEG images I have into BLOBs and store them in a table?

Thanks for your help.

Tom
0
Comment
Question by:tpigielski
  • 2
2 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 39188309
Too much trouble IMHO.

If you are using Access 2007 or higher, this is much easier if you store the images in the new "attachment" datatype (and are using the 2007 format: .accdb).
(this uses BLOB technology in the background anyway)

Then this is all easy.

An interface is provided to select (open, save, or delete) the image.
By default, just dropping the image field on the form, will display it.

;-)

JeffCoachman
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 39188324
See this link:

http://office.microsoft.com/en-us/access-help/attach-files-and-graphics-to-the-records-in-your-database-HA001213852.aspx

And again, just creating a form from this table will allow you to simply double-click the image attachment field and add/display the image...

;-)
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now