返回首页 - Notes - 2014

图片转 base64 编码显示(PHP)


<img src="data:image/jpg;base64,<?= base64_encode(file_get_contents(__DIR__.'/ruchee.jpg')) ?>">

date:2014-12-20