php把sqlserver存的16进制图片 转2进制 转base64

function hextobase64($str){
 
    return chunk_split(base64_encode(pack('H*',$icon_hex)));
}
大家可以自己查下各函数用法
————勇敢的少年啊 快去创造奇迹————
原文地址:https://www.cnblogs.com/masterccc/p/14015835.html