码迷,mamicode.com
首页 > Web开发 > 详细

php文件转base64

时间:2018-06-05 11:37:45      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:php文件转base64

  • 代码:
    <?php
    function filetobase64($file){  
    $base64file = ‘‘;  
    if(file_exists($file)){
        $finfo = finfo_open(FILEINFO_MIME_TYPE);
        $mimetype = finfo_file($finfo, $file);
        finfo_close($finfo);
        $base64data = base64_encode(file_get_contents($file));  
        $base64file = ‘data:‘.$mimetype.‘;base64,‘.$base64data;  
    }  
    return $base64file;  
    }
  • 测试:
    $ret = filetobase64(‘public/image/01.jpg‘);
    echo $ret;
  • 输出:
    data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCABGAMgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goO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vhy8udSiuliiisf7PTTruGxEqy/aWu4tn2dyivz/AMT8twU6n1uVG+Isv3iqVY7v+SM1D/yU/LsYr4fnfxJ2v5Ly2/A+bPD02hz6nrF/pQ1mGHX/ABl4leA6jNa3M/h8aje/bNUl0BYEt4rN9Zz5SQTvdroI+aCfVvuUUUV+DZm5YTF1KGGqVaVKKXLBVajSu3fWUpP72fPVak603UqS5pvdpKP4QUY/gf/Z
  • php文件转base64

    标签:php文件转base64

    原文地址:http://blog.51cto.com/12173069/2124923

    (0)
    (0)
       
    举报
    评论 一句话评论(0
    登录后才能评论!
    © 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
    迷上了代码!