Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to best way to store/embedd image in Access 2010

Posted on 2014-11-26
7
157 Views
Last Modified: 2014-12-07
What is the best way to store or embedd image into Access without increasing the size of database too much. I have used a 3rd party solution before. If my memory serves me right, it was called "Amarah" but can't find it anymore.
0
Comment
Question by:shydoc
7 Comments
 
LVL 49

Expert Comment

by:Gustav Brock
ID: 40466376
There is no best way to do so except if you your images are few and small.
In most other cases, store the images as separates files in a folder, and store only the path to these in your database.
If you can manage with the file size limit of Access of a few GB, you can attach a separate backend with one table only, holding the IDs and the images. This way you won't bloat your main backend.

We use a Tool for this, csXImage:

http://www.chestysoft.com/ximage/default.asp

Not free, but excellent support.

/gustav
0
 
LVL 57
ID: 40466623
Your thinking of dbPix from Ammara:

http://www.ammara.com/dbpix/access.html

Should mention that efficient image storage is now possible in Access because Microsoft made some changes there, but still, I think your better to keep an image on disk and only maintain a reference to it.

Jim.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 40467746
Here is a very basic sample I threw together a while ago to illustrate the "Link to stored images on a Disk" approach mentioned by the above two experts.

JeffCoachman
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 40467747
0
 
LVL 1

Author Comment

by:shydoc
ID: 40468792
Thanks for the quick answer, it will try out the above suggestion and get back asap.
0
 
LVL 26

Accepted Solution

by:
Nick67 earned 500 total points
ID: 40469283
I have a nice article and sample dealing with images here
http://www.experts-exchange.com/Database/MS_Access/A_13519-Printing-many-large-images-in-MS-Access-reports.html

Once you get the images (or more properly, stored path strings that lead to the images) into the database, you will likely want to do things with them.  The sample lays out how to best go about storing information about images for use in MS Access.  Yes, there are BLOBS.  Yes, there are OLE Object fields.  In later versions of Access, there are attachment fields.

No, none of those things are really a good idea in the long run.
A table (tblPictures) with
PictureID    autonumber   Primary key
Path             String  255 characters
Filename     String  255 characters (that may be overkill)

In later versions of Access, an image control can be bound to a field or expression.
If you are working in such a version, you may not want to separate the path and filename
In earlier versions, image controls have the .Picture property which can be set to a complete path.
0
 
LVL 1

Author Comment

by:shydoc
ID: 40486117
Thanks folk, all of you have given me good advice.

Going to award to Nick, his solution a bit tedious but the best solution for my task.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

790 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