I have developed a database using Perl DBI and display using Perl CGI. Can you please suggest syntax for adding an image to the table and its background in the database.
+3
A:
I would just insert a text field containing the address/name of the image, place the images in a directory and load them at runtime.
klez
2009-12-09 13:14:22
+1 - This is the best way, since it will allow the browser to cache the images if it can.
Kazar
2009-12-10 10:21:31
+2
A:
Insert the binary data into a field defined to hold blobs. Just be certain that only binary data gets inserted. Insertion can be done the same way you insert text into a text field.
You can also store the path to the image in a text field and later retrieve the image via that path.
Alan Haggai Alavi
2009-12-09 13:23:18