Yes, you could also do that, but there are two problems that I'm aware of:

 * Internet Explorer doesn't support it (at least, it didn't last I checked)

 * The browser can't cache the image

For this reason I recommend the strategy I proposed earlier.


On Jan 19, 2011, at 08:09, euromark wrote:

>       function imageFromBlob($text, $options = array()) {
>               //<img alt="" src="data:image/png;base64,' . 
> $this->_getBase64() .
> '" /><br/>
> 
>               $text = 'data:image/png;base64,' . base64_encode($text);
>               $image = sprintf($this->tags['image'], $text, $this-
>> _parseAttributes($options, null, '', ' '));
>               return $image;
>       }

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to