PHP show image as BLOB mysqli

后端 未结 3 1232
独厮守ぢ
独厮守ぢ 2021-01-20 01:56

I read all possible questions on StackOverflow, I asked all people who I know and no one can help me. I have table in database:

CREATE TABLE IF NOT EXISTS `z         


        
3条回答
  •  旧巷少年郎
    2021-01-20 02:36

    1. Don't store images in DB, it's performance suicide.
    2. Don't make your code vulnerable to SQLinjection.
    3. If you must store files in db, store content type. Maybe it's not a png? Or maybe you have a warning/notice printed out? It will break your image.

提交回复
热议问题