Hubo wrote:

When I attempt to view the generated test.jpg in a browser, it is unable

to


display. Same with photoshop and the windows built-in pic viewer.
I know that the base64 data is not corrupted, since I can get it to

display


properly in netscape with the following code:

echo '<img src="data:image/jpeg;base64,'.$image_data.' ">';


Unfortunately, I'm tied to IE. Has anyone run into a problem like this before?


For IE it is just (I'm using PHP 4.3.1):

echo base64_decode($image_data);






Thanks!
Steve

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



You may want to try adding a header call: header('Content-Type: image/jpeg');

--
--
paperCrane <Justin Patrin>

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



Reply via email to