Re: Working with Base64 data

From: Date: Wed, 18 Feb 2004 21:57:52 +0000
Subject: Re: Working with Base64 data
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-22904@lists.php.net to get a copy of this message
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>

« previous php.windows (#22904) next »