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