954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Adding Image in a Access Database

i need help in adding image in my current payroll project

i need a more simple way or easier to understand codes in adding image in my database


tnx in advance

sirmcfly.works
Newbie Poster
5 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

You can either store the image itself in the database (probably simpler code wise) or save the image to a directory and save the uri to the image in the database (this involves more code because you have to actually save the image but more efficient on your database).

hericles
Practically a Posting Shark
823 posts since Nov 2007
Reputation Points: 136
Solved Threads: 167
 

well here we hit an access weakness...you have to be real careful what you do here

If its image for a form background/ splash screen great...but if your talking for a database per record you really want to avoid doing this as data base bloats.

As hericles says you ideally want to just point to where file is...I tried this with a client who scanned in documents and access bloated to heck..crashed all the time. The funniest 1 was in library where they added images to database they got there access database to 500mbs back then (15 years ago) that was just plain silly

Ggalla1779
Newbie Poster
5 posts since Sep 2009
Reputation Points: 10
Solved Threads: 0
 

You could do as hericles stated and just store a path reference into the database.

You could get it application side and then assign it to a string. Then pass the string in to the database. You will have to make sure that everything is spelt correctly ect.

Begginnerdev
Posting Pro in Training
405 posts since Apr 2010
Reputation Points: 69
Solved Threads: 59
 

well the thing is the project is proposed to be network...and i have zero idea if its possible to just path the image rather than store it in the database...

sirmcfly.works
Newbie Poster
5 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

if you add path to record,you can still add in a control that uses path to display image

Ggalla1779
Newbie Poster
5 posts since Sep 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: