Store image in MySQL BLOB

前端 未结 1 1340
情话喂你
情话喂你 2021-01-27 01:14

I\'m storing small thumbs in a MySQL database. With PHP i create a thumbnail from an image and i simply store that into a BLOB column.

It seems that MySQL saves the bina

相关标签:
1条回答
  • 2021-01-27 01:42

    The best approach is to store the image on your filesystem and then reference its location via MySQL. Storing images in MySQL is not recommended. Why put an extra unnecessary strain on your database? All of the large websites (Facebook etc) store their images on a filesystem.

    0 讨论(0)
提交回复
热议问题