Archived

This topic is now archived and is closed to further replies.

Seriema

Builder Database question

Recommended Posts

Seriema    634
Hi! My friend(s) and I we''re thinking of making a game together. The "problem" is that my friend have drawn about 200 pictures, which is really hard to keep track of. I''m not meaning graphics to use in the game, I mean concept-art. Either way! Since I''m the programmer I was thinking of making a simple database program, to keep track of the images. Full with info and stuff I know how to implement a database in Borland Builder and basic functions with it. ¤ But HOW do I bind images (.bmp, .jpg, etc) with the database? Separate files and "hyperlinks" to them or merge them into a gigantic file? ¤ Which kind of database is best to use? Access, .db, etc... Thanx... }+TITANIUM+{

Share this post


Link to post
Share on other sites
Arild Fines    968
Builder comes with a developer version of Interbase, doesnt it? Why not just use that?

"I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours." - - Stephen Roberts

Share this post


Link to post
Share on other sites
MButchers    123
Hi there,

If its not going to be massive and does not
require extensive searching, or a large amount
of users I would go with a simple Paradox table.

If the images are static :-

Then just create your image field as type image
and bind this to a TDBImage control in the
same way you would do text then to write the
image to the dataset just do

DBImage1.DataSource.DataSet.Edit;
DBImage1.Picture.LoadFromFile(FileName);
DBImage1.DataSource.DataSet.Post;

or something simular.

Else

Just store the filename and path.

Hope its of some help.

Mark.

Share this post


Link to post
Share on other sites