base64_img

<img src="data:image/jpeg;base64,' .  base64_encode($data)  . '" />
Joshua Boyi