Get content of docx file which saved in mysql dabase as blob type in php

后端 未结 3 1005
南旧
南旧 2021-01-22 15:25

I am saving docx file as BLOB type in mysql dadabase. after the saveing i am trying to see the content of the file through fetching the content of filed but it is showing some u

3条回答
  •  被撕碎了的回忆
    2021-01-22 15:32

    I found this solution :

    "update blob_table set blob_col='LOAD_FILE('$tmp_name')";
    

    where $tmp_name is the file you upload, and this is the answer for this 6 years old question, using LOAD_FILE function. may be this is a newly added function to mysql.

提交回复
热议问题