问题描述
本地padf 转 base64
问题出现的环境背景及自己尝试过哪些方法
相关代码
// 请把代码文本粘贴到下方(请勿用图片代替代码)
try{
$tmp_file="./pic/8.14/".$row['id'].".pdf";
if(file_exists($tmp_file)){
$file=$this->imgToBase64($tmp_file);
$fileName=$row['id'].".pdf";
echo("<iframe src='". $fileContent."style='width:1024px;height:800px;'></iframe>"."<br> ------------<br>");
}