本文介绍了需要将图像从mysql数据库显示到fpdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
将图像保存在mysql数据库中作为bolb,我希望使用php在fpdf中显示它。我这样做有问题,因为我对fpdf很新。我真的需要帮助。谢谢。
A have image save in mysql database as bolb and I wish to display it out in fpdf using php. I'm having problem doing this as I am very new to fpdf. I really need help. Thank you.
推荐答案
您需要对FPDF进行此扩展:
You will need this extension to FPDF: http://www.fpdf.org/en/script/script45.php
[更新]
$query = "SELECT imageField FROM yyy WHERE ...";
$result = mysql_query($query);
$row = mysql_fetch_assoc($result);
$image = $row['imageField'];
$pdf->MemImage($image, 50, 30);
这篇关于需要将图像从mysql数据库显示到fpdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!