So, when a request is made with a content/type application/json a
cfBinaryData object is created. As this is actually a text string I wanted
to convert this to a string (got this working by creating a
java.lang.String and initing it straight with the cfBinaryData object), but
my first attempts where to retrieve the byte array from the cfBinaryData
however this didn't seem to work in neither of the following two ways:
<cfset a = getHttpRequestData().content.getByteArray()> <!--- Errors out
with an invalid expression error --->
or
<cfset a = getHttpRequestData().content>
<cfscript language="java">
import com.naryx.tagfusion.cfm.engine.cfBinaryData;
cfBinaryData a = (cfBinaryData) cf.get("a");
byte[] b = a.getByteArray(); //Errors out with an invalid attribute
error (rather than the runtime error generated if doing a.foo(), so
seemingly it's the right object )
</cfscript><cfabort>
So just to improve my understanding of OpenBD: why do both these
constructions not work?
David
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en
---
You received this message because you are subscribed to the Google Groups "Open
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.