Duncan,

Visit www.andyscott.id.au an have a look at my proof of concept, it does
what you're asking for with the variable.



Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273



-----Original Message-----
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Duncan
Sent: Wednesday, 7 March 2007 12:07 PM
To: cfaussie
Subject: [cfaussie] Java Output streams into CF vars


I am working with cfdiff, and specifcally the svnbrowser element.

When viewing a specific revision of a file the code pushes the file
contents directly from a Java out put stream into the browser.

http://cfdiff.googlecode.com/svn/trunk/svn.cfm check out lines 101 - 121.

I have tried with no degree of luck to get the output into a cf
variable. My end goal here is to be able to put it in a text area and
have code colouring on it (see riaforge for an example
http://ajaxcfc.riaforge.org/index.cfm?event=page.svnview&path=%2Ftrunk%2Fcor
e&file=ajax%2Ecfc
), this would then leave the user the choice to download the file
(currently this is what happens) or view it and have other options.

The best I have so far is a cfdump of the structure - it contains the
following:
Author: duncan
Content: binary:
1043210310610410632103104321061041310131010010210310010210351505050131013101
0010210310010210351515113101310100102103100102103525252131013101001021033910
810710010210310610732100102103
date : {ts '2007-03-02 05:10:44'},
kind: file,
message: NULL,
path: / trunk/scribble.cfm,
revision: 5,
size: 71,
url: /trunk/scribble.cfm

FYI the content of scribble.cfm is:

[code]
h gjhj gh jh

dfgdfg3222

dfgdfg333

dfgdfg444

dfg'lkdfgjk dfg
[/code]

Now I have tried binaryDecode() and binaryEncode() but this seems to
not do the trick, its a completely different form of binary!

Can anyone point me in the direction of getting this binary java stuff
into a CF var after being converted?

-- 
Duncan I Loxton
[EMAIL PROTECTED]



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to