problem in showing an img open from zip archive
- by moustafa
iam get the img date from the zip archive by getFromIndex()
and the date like that (this the first line of text appearing)
‰PNG ??? IHDR???@???@???ªi
know how i can makke appear
iam used
$im = imagecreatefromstring($data);
if ($im !== false) {
header('Content-Type: image/png');
imagepng($im);
imagedestroy($im);
}
but its did not worked
and used
header('Content-Type: image/png');
imagepng($data);
imagedestroy($im);
but its did not worked and giving me
Warning: imagepng(): supplied argument is not a valid Image resource