How do I save images to my database | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I save images to my database

2nd Apr 2019, 2:01 PM
Tachrade Adesokan
Tachrade Adesokan - avatar
2 Answers
+ 2
If you are storing an image for building a website and such, I believe it's better to store the file location instead. (Like: "images/image1.png") If you really want to experiment with storing images in a Database, you can use a BLOB column. Depending on the DB, there are LARGEBLOB which could be more useful. I wish you success!
2nd Apr 2019, 6:11 PM
Luis Sepúlveda
Luis Sepúlveda - avatar
0
Thanks so much Luis
2nd Apr 2019, 6:13 PM
Tachrade Adesokan
Tachrade Adesokan - avatar