I want to display image from blob mysql data, but image not display, here the code :
$data = $this->Api_m->getData("calon", 'id_calon', $id)->result()[0]->gambar_calon;
header('Content-Type: image/png');
imagepng($data);
image type is png, and when i download from phpmyadmin is work. and because I want to show image in android so i cant use base64 image like this way:
src='data:image/jpeg;base64
Browser screenshot :