|
-
Jan 1st, 2004, 11:44 PM
#1
Thread Starter
Frenzied Member
inserting pictures into access database
Hello
I am creating a c# application that will use access database. The application is about a property agent that has details of houses for sale.
My question is, how do you store the pictures in access, and how can you add and delete them from C# application
A example program will be most gratefull.
Many thanks in advance
Steve
-
Jan 2nd, 2004, 10:34 AM
#2
Frenzied Member
Here is a photo album (stores and retrieves images from a database) written in C#.
C# Photo Album
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
-
Jan 2nd, 2004, 11:05 AM
#3
PowerPoster
You may not want to store the image in the database directly. Instead, create a folder to save the images to, and then store that file path in the database. This will yield much better performance.
-
Jan 2nd, 2004, 01:59 PM
#4
Addicted Member
Originally posted by hellswraith
You may not want to store the image in the database directly. Instead, create a folder to save the images to, and then store that file path in the database. This will yield much better performance.
What Hellswraith said, and If you only store the path in the database you can store the images on Network drives, cd's ect. Then your app will not limited by the size of the disk Access is on. Image databases like to eat up disk space.
"And most of the evils of society can, in fact, be cured through information. We have a society that has been disinformed and based on the disinformation has made irrational choices. And that's what I mean by 'ignorance.' People, who ordinarily might be smart, are deprived of the data by which to make a rational decision, don't have the data to do it."
Frank Zappa
-
Jan 2nd, 2004, 08:28 PM
#5
Thread Starter
Frenzied Member
thanks for your help.
There is one more question.
I am using a numericUpDown control to allow the users to insert numbers.
But l am having trouble saving and retrieving them from the database.
This is the code l am using so far
Code:
numNoBedrooms.value = m_dtHouses.Rows[m_rowPosition]["Bedrooms"].ToString();
m_dtHouses - is the data table
m_rowPosition - is the current record
Thanks in advance
Steve
-
Jan 2nd, 2004, 08:49 PM
#6
Thread Starter
Frenzied Member
Just one more question.
I think storing the path in the database is the best way to do it. But in the database what data type do l set the field to.
My pictures are in a folder called: c:\Houses\pictures.
Thanks in advance
Steve
-
Jan 3rd, 2004, 07:33 AM
#7
On the other hand, if you store the images outside the database, you can't simply distribute one file with all the data, it's bound to be a group of files.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 3rd, 2004, 09:10 PM
#8
Thread Starter
Frenzied Member
Thanks for you help
But is it possible to have some code examples
Thanks
Steve
-
Jan 24th, 2004, 11:58 PM
#9
Thread Starter
Frenzied Member
Hello
Still need help with this.
-
Jan 25th, 2004, 04:42 AM
#10
I haven't done database handling in ages, so I don't have examples.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|