+ 2
I need to save an image in a data base phpMyAdmin ? how can I do it?
I try to save the image not here link .
6 Answers
+ 2
Use BLOB as data type
+ 8
detabase table field type BLOB as data type
+ 3
Yes, you can store images in the database, but it's not advisable in my opinion, and it's not general practice.
A general practice is to store images in directories on the file system and store references to the images in the database. e.g. path to the image,the image name, etc.
Images can get quite large, greater than 1MB. And so storing images in a database can potentially put unnecessary load on your database and the network between your database and your web server if they're on different hosts.
+ 2
you can also convert image to base64 encoding and save in longtext type
0
wondwosen Abedbaw
I know , but how can I use it?