显示PHP的BLOB数据? [英] Display BLOB data PHP?
本文介绍了显示PHP的BLOB数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用PHP显示BLOB数据?我已经将BLOB输入到数据库中,但是我将如何检索它呢?任何例子都很棒.
How would I display BLOB data with PHP? I've entered the BLOB into the DB, but how would I retrieve it? Any examples would be great.
推荐答案
简单示例:
$blob_data = "something you've got from BLOB field";
header('Content-type: image/jpeg'); // e.g. if it's JPEG image
echo $blob_data;
这篇关于显示PHP的BLOB数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文