+ 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 .

9th Jul 2017, 12:39 PM
Hassen Basdouri
Hassen Basdouri - avatar
6 Réponses
+ 2
Use BLOB as data type
9th Jul 2017, 1:20 PM
Da' BO$
Da' BO$ - avatar
+ 8
detabase table field type BLOB as data type
9th Jul 2017, 3:40 PM
Mohammad Roshandelpoor
Mohammad Roshandelpoor - avatar
+ 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.
9th Jul 2017, 2:09 PM
Chris
+ 2
you can also convert image to base64 encoding and save in longtext type
29th Aug 2017, 5:01 PM
Mohammad Zarchi
Mohammad Zarchi - avatar
0
wondwosen Abedbaw I know , but how can I use it?
9th Jul 2017, 1:44 PM
Hassen Basdouri
Hassen Basdouri - avatar