November 30, 201213 yr Dear all, I would like to know, how to store images in a database in a webpage. What i have been doing is designing a shopping site, so it must require images to be stored into the database. Your help would be kindly apppreciated. P.S. I am using WAMP Thank you
November 30, 201213 yr Upload your images and store the image filename in your database. Use mysqli to query the database for the image filename to use in your html. You may want to store the full url in the database or just the filename, just be sure you code the path correctly. You can also write a script to upload images from your website to the database. If this is what you're after, let me know and I'll post more.
December 2, 201213 yr Hello. you can either store the name of image in DB or if you want to save the image itself in DB, the traditional relational DB will not work! you are going to be in need of Object Oriented DB or Object Relational DBs to store image itself in DB.
Create an account or sign in to comment