标签:jpg 编码 file filename ase pre name class decode
<?php header( "Content-type: image/jpeg"); //$filename=‘1.jpg‘; //$content=file_get_contents($filename); //$content = base64_encode($content); // 将二进制信息编码成字符串 //file_put_contents(‘6.txt‘,$content); $file=‘6.txt‘; $content=file_get_contents($file); echo base64_decode($content);//输入图片
标签:jpg 编码 file filename ase pre name class decode
原文地址:http://www.cnblogs.com/719907411hl/p/6791982.html