I display images without problems, I have used something like this (do
not know if it's the best solution) :
In controller:
$file_content = $this->Document-
>read(array('image'), $k['Document']['id']);
$encoded =
chunk_split(base64_encode($file_content['Document']['image']));
$mime = $k['Document']['mime'];
.....
in the view:
echo '<img src="data:{$mine};base64,'.$encoded.' "
style="border: 2px solid #005A73; padding: 5px;"></
img><br>';
Note that the border is not necessary..
Hope this helps.
On Apr 30, 12:29 pm, rtconner <[EMAIL PROTECTED]> wrote:
> Well I dont know spanish, but are you using a layout that looks just
> like this?
>
> <?php echo $content_for_layout; ?>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---