Re: Display Dynamic Images in Cake??

2007-11-27 Thread Baz
Do explain, I'm curious. On Nov 27, 2007 3:34 AM, jonathan <[EMAIL PROTECTED]> wrote: > > Indeed the problem was globals not being seen globally. I added some > global statements and joy is mine again. > > On Nov 27, 3:27 am, jonathan <[EMAIL PROTECTED]> wrote: > > OK, now I am just talking to m

Re: Display Dynamic Images in Cake??

2007-11-27 Thread jonathan
Indeed the problem was globals not being seen globally. I added some global statements and joy is mine again. On Nov 27, 3:27 am, jonathan <[EMAIL PROTECTED]> wrote: > OK, now I am just talking to myself, but I have had some stellar > insight for anyone following along. The problem is apparentl

Re: Display Dynamic Images in Cake??

2007-11-27 Thread Grant Cox
Looks like you are messing with it now - there is an obvious print_r and before the file data now. Are you calling exit() after the file data is output, or otherwise ensuring that cake doesn't attempt to render a view? On Nov 27, 7:09 pm, jonathan <[EMAIL PROTECTED]> wrote: > Just so you know

Re: Display Dynamic Images in Cake??

2007-11-27 Thread jonathan
OK, now I am just talking to myself, but I have had some stellar insight for anyone following along. The problem is apparently not in the display of the image, but in the generation of the image. I remember having some issues with global variables in the framework from time to time, and I think

Re: Display Dynamic Images in Cake??

2007-11-27 Thread jonathan
Just so you know what the code looks like (nothing fancy at all), here is the action within my Orders controller. By commenting out the setFilePath it should output to the browser: function storeBarcode($oid) { $this->layout=NULL; $this->autoRender = false; $bc = new DataM

Re: Display Dynamic Images in Cake??

2007-11-27 Thread jonathan
Hey Wayne, The image is a PNG so I am using the content-type MIME for PNG. I do not know how any spaces could work their way in there. The same code works outside Cake. It's called rDataMatrix and relies on the bundled GD Library. Again, outside Cake, nothing but joy. Inside Cake, one of my

Re: Display Dynamic Images in Cake??

2007-11-27 Thread Wayne Fay
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, > >