Store Bitmap in Database File?
Posted: Fri Mar 24, 2006 9:00 am
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.
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.