通过php从mysql加载图像.如何? [英] load image from mysql by php. how?
本文介绍了通过php从mysql加载图像.如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将图像存储在mysql数据类型blob中.
只是我不知道如何....将其加载到我的网站中.
解决方案
一个简单的解决方案可以作为base64编码数据进行附加:
imgbinary = read_image_data_from_database();
imageText = base64_encode(
>
I stored image in mysql datatype blob.
Just I don''t know how....load it in my website.
解决方案
One simple solution can be attaching as base64 encoded data:
imgbinary=read_image_data_from_database();
imageText=base64_encode(
这篇关于通过php从mysql加载图像.如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文