//前端请求
<img class="myImg" src="http://192.168.5.165/base64ToImage">
//后端接口
public function base64ToImage(){
$base64 = 'iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3A2.....';
$img = base64_decode($base64);
header("Content-type: image/png");
echo $img;
}