我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何解码以HTML格式显示的图像数据(sqlite)

I have an image data that stored in sqlite database. the data is something like this:

€TâM89504e470d0a1a0a0000000d494844520000012

how to show the data in html with php?

Looks like a base64 encoding.

If you have a PHP script that can access the database, use the following PHP snippet:

echo "<img src='data:image/png;base64,".$base64_data."' />

近期文章

  • jquery倒计时插件有多个ajax调用?
  • 如何将此代码实现到事务中?
  • mysqli fetch_assoc只有1个结果而不是全部
  • 为什么Phalanger PhpNetClassLibrary无法加载
  • 将变量传递给shell脚本的网页
  • 如何在其他函数中使用函数变量[关闭]
  • Ajax POST Requests返回int而不是string
  • 问题将数据库查询结果导出到Excel
  • 样式组PHP结果在名字的第一个字母
  • 在页面加载时显示来自php的json canvas图像
  • 从查询和数据库查找字段中删除连字符
  • 无法重新声明以前声明的函数[重复]
  • 从外部链接上传wordpress中的图像
  • PHP致命错误:未捕获异常'PDOException'
  • 将CID转换为LAT时,PHP会产生不同的结果
  • 如何模拟订阅的过期状态
  • 使用php在带有空格的mysql列中插入数据
  • 更多PHP类变量$ this-> variable-> function()[duplicate]
  • 仅在每个月的第一天插入数据一次
  • 使用nginx服务器找不到Yii应用程序404

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华