PHP show image as BLOB mysqli

后端 未结 3 1228
独厮守ぢ
独厮守ぢ 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:22

    Using phpMyAdmin, I had to change the MIME display type to .jpeg on my MySQL image column = avatar_image. Once I made this simple change, it displays in the browser...i.e. the browser was getting the .jpeg data as a BLOB in raw form and did not know what to do with it...but it was a MySQL configuration = MIME type change on the MySQL column that fixed it.

提交回复
热议问题