Subject | Hello and a question |
---|---|
Author | nosix06 |
Post date | 2008-02-10T15:35:01Z |
Hello everyone,
I would like to start out by saying I am very new to database
programming and only program (in delphi 7) as a hobby so please
forgive me in advance for any questions which might seem like basic
stuff for the rest of you but I am learning as I go along so please
bear with me here.
Anyway I have decided to try and create my first database application
in Delphi using Firebird and IBobjects and so far I have not found an
easy to follow tutorials or demos on how to Insert and Display images
from my database and was looking for some easy to follow examples or a
good tutorial I can follow along with.
As I have said I am using Delphi7, Firebird 2.0.3, and the latest
IBobjects components if that helps at all and I have already created a
sample database with 1 table named "IMAGES" with the following 3 Fields.
IMAGE_ID (auto_increment , primary key , not null) //ID for the image
THEIMAGE (blob, binary, not null) // The image itself
IMAGEDESC (Varchar(500)) // A description on the image
and that is about as far as I have gotten and what I am needing now
is an example which will show me how to Insert an images from my
computer to the database using something like a OpenFile Dialog box
and a button and then display those images in a Data Aware Image
control on my form with another button (really simple stuff im sure
but I cannot find any good examples which I can learn from)
I don't need anything fancy or stuff dealing with stored procedures or
triggers and stuff like that (unless it's required I don't know
because as I said I am pretty new to all this stuff) just your basic
insert and display example using the minimum amount of components /
code as possible..
Thank you for your time and replies in advance they will all be
greatly appreciated.
Nosix.
I would like to start out by saying I am very new to database
programming and only program (in delphi 7) as a hobby so please
forgive me in advance for any questions which might seem like basic
stuff for the rest of you but I am learning as I go along so please
bear with me here.
Anyway I have decided to try and create my first database application
in Delphi using Firebird and IBobjects and so far I have not found an
easy to follow tutorials or demos on how to Insert and Display images
from my database and was looking for some easy to follow examples or a
good tutorial I can follow along with.
As I have said I am using Delphi7, Firebird 2.0.3, and the latest
IBobjects components if that helps at all and I have already created a
sample database with 1 table named "IMAGES" with the following 3 Fields.
IMAGE_ID (auto_increment , primary key , not null) //ID for the image
THEIMAGE (blob, binary, not null) // The image itself
IMAGEDESC (Varchar(500)) // A description on the image
and that is about as far as I have gotten and what I am needing now
is an example which will show me how to Insert an images from my
computer to the database using something like a OpenFile Dialog box
and a button and then display those images in a Data Aware Image
control on my form with another button (really simple stuff im sure
but I cannot find any good examples which I can learn from)
I don't need anything fancy or stuff dealing with stored procedures or
triggers and stuff like that (unless it's required I don't know
because as I said I am pretty new to all this stuff) just your basic
insert and display example using the minimum amount of components /
code as possible..
Thank you for your time and replies in advance they will all be
greatly appreciated.
Nosix.