php把sqlserver存的16进制图片 转2进制 转base64 function hextobase64($str){ return chunk_split(base64_encode(pack('H*',$icon_hex))); } 大家可以自己查下各函数用法 ————勇敢的少年啊 快去创造奇迹————