I use the following for displaying (supposing the controller is
Document and the image field is 'image'):

<?php
       $mime = 'image/jpeg'
       echo '<img src="data:
{$mine};base64,'.chunk_split(base64_encode($data['Document']
['image'])).' " style="border: 2px solid #005A73; padding: 5px;"></
img>';
?>

You could also create a file in your webroot and just use the $html-
>image()..

Hope this helps

On Nov 24, 2:58 pm, Bruno <[EMAIL PROTECTED]> wrote:
> I have store a image (from upload file) and i want to display it in a
> html page. How can i do with a $html helper. Is it possible ?
> Is there some other helper witch cab do it ? Witch Html element can i
> use to display image frow a data flow ?
>
> Best regards
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to