Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个存储在 sqlite 数据库中的图像数据。数据是这样的:
€TâM89504e470d0a1a0a0000000d494844520000012
如何使用 php 在 html 中显示数据?
看起来像base64编码。
如果您有可以访问数据库的 PHP 脚本,请使用以下 PHP 片段:
echo "<img src='data:image/png;base64,".$base64_data."' />