Ok, gotta another "fun" one (cf2021u4). Using memb...
# cfml-general
j
Ok, gotta another "fun" one (cf2021u4). Using member functions, what is the proper way to take string "foo", and get a base64URL result? I've tried the simple: variables.foo.binaryEncode( "base64URL" ); and i've tried to get slightly clever: variables.foo.toBase64().toBinary().binaryEncode( "base64URL" ); I hope i'm missing something obvious here.
s
those functions are not available as member functions so you cannot chain them. here is a set of examples from the adobe docs https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-a-b/binaryencode.html
s
well i have a feeling the docs are wrong, here is an example using cf2021 https://trycf.com/gist/606cfcdee00417f301579e19d84c4d7e/acf2021?theme=monokai Unless those features were added in an update that trycf is missing
@Mark Takata (Adobe) do you know if the above is possible in cf2021?
m
Hey @saghosh, it looks like we included methods in the member functions list here: https://helpx.adobe.com/coldfusion/developing-applications/building-blocks-of-coldfusion-applications/using-the-member-functions.html that are NOT supported currently. Attempting to use .BinaryEncode() in CF2021 with the latest update results in