Re: Calling GetPageContext within a CFC

2009-02-05 Thread cf coder
Can someone please suggest what should I be doing to call the getPageContext method and display the image and the rest of the page from within the CFC? Hello everybody, I have a cfm template which I refer to in the img src tag (img src=OutputImage.cfm border=1 /) . It outputs the image

Re: Calling GetPageContext within a CFC

2009-02-05 Thread Nathan Strutz
Dude, why are you trying to put the image inside the image tag? Isn't that just for the image source, a.k.a. the link to where the image is, and not the actual binary data of the image itself? I mean, if that's what you really want, why not cffile read the image in and output it that way instead

Calling GetPageContext() within a CFC

2009-02-03 Thread cf coder
Hello everybody, I have a cfm template which I refer to in the img src tag (img src=OutputImage.cfm border=1 /) . It outputs the image correctly and as I would expect it to. Here is the code: OutputImage.cfm cfscript Context = getPageContext(); Context.setFlushOutput(false);

Calling GetPageContext() within a CFC

2009-02-03 Thread cf coder
Hello everybody, I have a cfm template which I refer to in the img src tag (img src=OutputImage.cfm border=1 /) . It outputs the image correctly and as I would expect it to. Here is the code: OutputImage.cfm cfscript Context = getPageContext(); Context.setFlushOutput(false);

Calling GetPageContext within a CFC

2009-02-03 Thread cf coder
Hello everybody, I have a cfm template which I refer to in the img src tag (img src=OutputImage.cfm border=1 /) . It outputs the image correctly and as I would expect it to. Here is the code: OutputImage.cfm cfscript Context = getPageContext(); Context.setFlushOutput(false);