Did you set the headers correctly (content type etc)?
Do you have a space (or more than one) appearing at the beginning of
your image file which would cause these problems?

What PHP barcode generation library are you using?

Wayne

On 11/27/07, jonathan <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> This seems to have come up a number of times before, but I have not
> found a definitive answer.  I am trying to generate a dynamic image
> (in this case, a barcode from a PHP barcode generation library).  I
> have tried every combination of headers, views, layouts, etc. and
> still all I get is the raw image string (in view source) and not the
> image properly rendered.  Even when I try to save the image to the
> filesystem, it is blank.  I know the library works, because I paste
> almost identical code outside of Cake and all is perfect.
>
> Does anyone have a definitive way to display image data in Cake?
> (Version 1.1x please ;)
>
> Thanks much,
> Jonathan
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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