php - How to Decode image data (sqlite) to show in HTML -


i have image data stored in sqlite database. data this:

€tâm89504e470d0a1a0a0000000d494844520000012

how show data in html php?

looks base64 encoding.

if have php script can access database, use following php snippet:

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


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -