display imap inline image?

From: Date: Sat, 29 Jan 2005 06:44:21 +0000
Subject: display imap inline image?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-207637@lists.php.net to get a copy of this message
Hi! I have rewritten the script and now the output appers in a text form $testbody = imap_body($mbox, $msgno, "IMAGE/JPEG"); $testbody = base64_encode($testbody); // header('Content-Type: image/jpeg'); echo $testbody; This is a sample of the script how can i convert the ouput to an image/jpeg? The output look like this.. LS0tLS0tPV9QYXJ0XzEyNzk4NjFfNTUz... and so on The reason the header line above is comment out is that when enable it doesn't print out anything but an little frame whith the text image. /Fredrik

« previous php.general (#207637) next »