473,785 Members | 2,283 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3491

<me*****@yahoo. com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.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.goo glegroups.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
1520
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 :- http://www.guitarmidi.co.uk/gui/index.html but here I didn't use any images and I only output 1 result per table row.
12
20936
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 contains the paths to the pictures. The database consists of two tables: TABLE DATA ID Name LastName
10
2368
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. That is, images inline with the actual content of the blog itself. Is there an example that I can be pointed to, where I can examine some code and figure out how to do this? Frankly I haven't got a clue, aside from breaking the content up into...
52
9984
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 2005, and, since he already has licenses for Office Pro 2002, he wants to upgrade to that. I've been saying that we need to upgrade to Access 2003, not 2002, even if Office is kept at 2002. We are also looking to do a fair amount of...
5
1785
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 onto a web page. I have the data but the images are causing a problem. The code I am using is as follows: For the data: <TD><P><FONT COLOR="#000000"><% Response.Write rsRecordset("Fieldname") %></FONT></TD> This is fine. For the images:
8
2336
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 relationship with a Pictures table, i.e. there will be several pictures for each record in my main table. There are several things that I would like to be able to do with this setup, and this is what I am thinking:
7
10165
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. The properties look the same whether I use XP or 2003 versions of Office. If I take an earlier version of Access and link the image, it puts the image. I can also see the image in 2003. If I link the image using 2003 it only shows the filename....
4
2078
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 I hold the Mouse button down over the button, I can on go record to record on each click, but can't get autorepeat when held down. I'll bet it's something simple!
5
2920
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 outcome is a form with multiple images that change with each record. This works fine, however once I shut the database down and restart, it stops working. I've figured out that it is because i'm only putting in the relative path (image.jpg) rather than...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10315
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10083
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6737
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.