473,416 Members | 1,555 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Access and Images - Linking image table to a record table

Hello -
I am looking for the best way to store images in a Access DB.
My Idea -
I have a table with 150,000 records. These recoreds represent a Crash
(Traffic Accident).
I have 50 different images that represent almost any type of Accident.
Each crash record can be represented by one of those 50 images
(depending on the Crash Data).

I don't want to waste space by having each record have a BLOB field w/
the image in it.
I was thinking of having 2 tables one with a ID, and the image (50
records) and one with the 150,000 crash records. Then I want to link
the tables by ID and be able to plot the images on a VB form in VB
using ADO. I do not want to store the path of the image in the DB and
have the image outside the DB.
Do yall think I will be able to do this in this manner? If not any
altenatives would be very helpful.

Thanks,
Chuck

Dec 13 '05 #1
3 3453

<me*****@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Yes Larry they are. I plan integrating such logic into a GIS System.
I create Crash Data Management Systems in ArcGIS.
Now with this approach do you see any pitfalls with displaying these
blobs in a VB form using an ADO connection and Queries?
You da man thanks.


It's pretty easy to display pictures, one of several ways, in an Access
form, using either an Image or a Bound Object Frame Control. VB has
different controls, but you can use either DAO (just include the library in
your references) or ADO to access the database, so I would imagine you
could. (I rarely ever use ADO, and I've never used the techniques in that
sample with VB -- in fact, it's been some time since I did anything in
classic VB, so I can't explain in detail _how_ you would go about it.)

Larry Linson
Microsoft Access MVP
Dec 13 '05 #2
Yes Larry they are. I plan integrating such logic into a GIS System.
I create Crash Data Management Systems in ArcGIS.
Now with this approach do you see any pitfalls with displaying these
blobs in a VB form using an ADO connection and Queries?
You da man thanks.

Dec 13 '05 #3
Yes, I think you could. I haven't done it exactly that way, but I think you
might be able to adapt the code for storing images as BLOBs and the external
file approach from the downloadable example at http://accdev.tripod.com.

You would store an indicator of which of the 50 BLOBs you want to display in
the record, retrieve that BLOB into a temporary image file (as is done in
the BLOB technique), and set that files path and filename into the Picture
propery of an Image control.

Just as a matter of interest, are these 50 blobs something like the diagrams
one sees on some accident report forms, showing roads, vehicles, direction
of travel, etc.?

Larry Linson
Microsoft Access MVP

<me*****@yahoo.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hello -
I am looking for the best way to store images in a Access DB.
My Idea -
I have a table with 150,000 records. These recoreds represent a Crash
(Traffic Accident).
I have 50 different images that represent almost any type of Accident.
Each crash record can be represented by one of those 50 images
(depending on the Crash Data).

I don't want to waste space by having each record have a BLOB field w/
the image in it.
I was thinking of having 2 tables one with a ID, and the image (50
records) and one with the 150,000 crash records. Then I want to link
the tables by ID and be able to plot the images on a VB form in VB
using ADO. I do not want to store the path of the image in the DB and
have the image outside the DB.
Do yall think I will be able to do this in this manner? If not any
altenatives would be very helpful.

Thanks,
Chuck

Dec 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: thomas | last post by:
Hi folks, I was wandering how to output images using XML and XSLT. I've tried but I can't get it to work I've used XML and XSLT before but it was in a different format. See for yourself :-...
12
by: Wadim Grasza | last post by:
I want to store and display (on a form or a report) multiple pictures per record in an access database. The pictures are not stored within the database. They are stored as files and the database...
10
by: Neo Geshel | last post by:
I am seeking to hand-roll my own blog in ASP.NET 2.0 and SQLExpress 2005. Why? Because I can. Because I will gain experience. The one thing that has me stumped at square one is inline images....
52
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server...
5
by: kbrad | last post by:
I have an Access database set up with a number of text fields and a hyperlink field which references a different image per record. I am trying write ASP code to retrieve allt his data and images...
8
by: Robert | last post by:
I am creating a database that will have a large number of images in it and I would like some input as to the best way to handle them. Each record in my database will have a one-to-many...
7
by: needin4mation | last post by:
Hi, I have an Access 2002 - 2003 database. I am using Access 2003. Whenever I link an image all it shows is the filename. Not the image. Other versions of Access can link the image just fine. ...
4
by: ApexData | last post by:
The standard NavigationButtonBar at the bottom of my form was working fine. Now, without recognizable reason, the AutoRepeat capability of the Access forward and back buttons are not working. If...
5
by: rodeodaisy | last post by:
Hello, I'm having trouble with MS Access 2007 (running Vista). I have a table with multiple fields, including several text fields containing the links to images relevant to that record. The...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.