How to store an image into a database and then retrieve the same in web designing, basically using xampp controller? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to store an image into a database and then retrieve the same in web designing, basically using xampp controller?

I have been creating a website as my project and this part is troubling me. The thing that's need to be done is to first upload an image via a form element and then on any other page it should be retrieved and shown. I have been working e-commerce website where users need to give information about a particular book including its image. I have tried the blob data type but I am not getting any output. Please help!

27th Mar 2019, 12:40 PM
Ritwik Tripathi
Ritwik Tripathi - avatar
2 Answers
+ 5
It should be feasible with the blob as you mentioned. Try checking some tutorials like: https://www.codeproject.com/Questions/1251312/How-to-upload-image-to-mysql-database-and-display If still no luck, post your code and maybe someone will be able to spot the error...
27th Mar 2019, 1:31 PM
Tibor Santa
Tibor Santa - avatar
+ 1
Thank you, I'll try this tutorials.
27th Mar 2019, 2:09 PM
Ritwik Tripathi
Ritwik Tripathi - avatar