Created
July 28, 2012 22:09
-
-
Save mplacona/3194982 to your computer and use it in GitHub Desktop.
ColdFusion (Java Byte Array)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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