$file = __DIR__ . '/image/123.jpg';
$fp = fopen($file, 'rb' );
$base = chunk_split(base64_encode(fread($fp, filesize($file))));
fclose($fp);
header("Content-type:image/gif");
exit(base64_decode($base));
$file = __DIR__ . '/image/123.jpg';
$fp = fopen($file, 'rb' );
$base = chunk_split(base64_encode(fread($fp, filesize($file))));
fclose($fp);
header("Content-type:image/gif");
exit(base64_decode($base));
本文标题:base64加密解密
本文链接:https://www.haomeiwen.com/subject/sbfvcftx.html
网友评论