+ 1

How to insert picture into the database

how to add picture into the data base and to generate picture in php pages

28th Apr 2018, 11:04 AM
MUSSA M. IZADIN
MUSSA M. IZADIN - avatar
2 Answers
+ 4
The src thing is also smart,but your image will fail to exist once the image is deleted from its source or the src has been changed.Your image now depends on the path of the original image. MySQL has a BLOB (binary large object) data type that can hold a large amount of binary data. The BLOB data type is perfect for storing the image data. In MySQL, four BLOB types are available – TINYBLOB, BLOB, MEDIUMBLOB, and LONGBLOB. learn more on Google
28th Apr 2018, 11:15 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 1
You don't add the picture to the database, only the url.
28th Apr 2018, 11:09 AM
Bagshot
Bagshot - avatar