Can't display image after uploading it to a data base, PHP and Mysql

后端 未结 4 1743
耶瑟儿~
耶瑟儿~ 2020-12-22 13:05

I need to do a web page for a client to upload images to a data base and display them.

I am achieve to upload the images into a database, but I\'m having trouble di

4条回答
  •  有刺的猬
    2020-12-22 13:22

    Depending on the file use inline base64 encoding. This is done with:

    echo '';
    

    Font: base64_encode

    OR

    Put the T upperCase (Type), because can giving error in IE. Try printing with the function file_get_contents.

    header('Content-Type: image/jpeg');
    echo readfile($image);
    

提交回复
热议问题