This should o the trick :)

obj_output = getPageContext().getCFOutput();
Stuff = obj_output.getString();
obj_output.clearAll();

Adam

On Thu, 29 Jul 2004 16:14:27 -0400, Joe Bernard <[EMAIL PROTECTED]> wrote:
>
> The only piece I'm having trouble with is reading in the output stream. I cannot use cfsavecontent to wrap each page because we have thousands of pages, and it would be a pain in the arse to wrap each one. I think the best way to do this is by reading the output stream.
>
> The only close example I've seen of this is on Christian Cantrell's site. This code accesses the stream and writes to it:
> <cfscript>
>    context = getPageContext();
>    context.setFlushOutput(false);
>    response = context.getResponse().getResponse();
>    out = response.getOutputStream();
>    response.setContentType("image/jpeg");
>    response.setContentLength(arrayLen(pic));
>    out.write(pic);
>    out.flush();
>    out.close();
> </cfscript>
>
> Kind of the opposite of what I want but it proves it can be done. Has anyone done this?
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to