Re: Working with Base64 data
| From: | Justin Patrin | 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:
You may want to try adding a header call: header('Content-Type: image/jpeg'); -- -- paperCrane <Justin Patrin>When I attempt to view the generated test.jpg in a browser, it is unabletodisplay. Same with photoshop and the windows built-in pic viewer. I know that the base64 data is not corrupted, since I can get it todisplayproperly 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