display imap inline image?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux