problem in showing an img open from zip archive

Posted by moustafa on Stack Overflow See other posts from Stack Overflow or by moustafa
Published on 2010-04-27T05:47:47Z Indexed on 2010/04/27 5:53 UTC
Read the original article Hit count: 212

Filed under:

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

© Stack Overflow or respective owner

Related posts about php