Is there any way of storing a bitmap in a database file?
This may not sound logical but how else could I do this:
One section of my app contains a database of employees and I would like to be able to store (or attach) their picture to their details.
Displaying the bitmap is no problem - that works perfectly - but I have to assume that the filename is something specific in order to display it e.g. I could have a bitmap file called 'DBP001.BMP' for example in order for me to display the correct picture for employee number 'DBP001'.
If it (the bitmap) could be stored in a database then the filename would not matter as it would just be another field in the database attached to the correct employee record and then simply displayed.
Regards,
Dale.
Store Bitmap in Database File?
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Hello,
Sounds great - but how?
Would you read the existing file off disk (using which function?) and then 'Replace Memo Field' with the data from the read or what?
I mean to say that there is no function that I am aware of to say for example:
gData := BitMap.Ext
Replace Memo Field With gData
Regards,
Dale.
Sounds great - but how?
Would you read the existing file off disk (using which function?) and then 'Replace Memo Field' with the data from the read or what?
I mean to say that there is no function that I am aware of to say for example:
gData := BitMap.Ext
Replace Memo Field With gData
Regards,
Dale.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: