Skip to content

Instantly share code, notes, and snippets.

@mplacona
Created July 28, 2012 22:09
Show Gist options
  • Save mplacona/3194982 to your computer and use it in GitHub Desktop.
Save mplacona/3194982 to your computer and use it in GitHub Desktop.
ColdFusion (Java Byte Array)
// Converts a ColdFusion string in a java byte array
function createByteArray(string){
var objString = createObject("Java", "java.lang.String").init(JavaCast("string", string));
return objString.getBytes();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment