Hello list, I have a problem with my cfc method, it will not accept my ByteArray. It always throws an error: The argument IMG passed to function saveToDisk() is not of type binary.
I am using this code in an Actionscript 3 project ( not a flex project ) with amf0 remoting. Actionscript: ========= var picture:Picture = Slideshow.getInstance().getPicture(); var bmp:BitmapData = new BitmapData( picture.width,picture.height,false); bmp.draw(picture); var myPNG:ByteArray = PNGEncoder.encode(bmp); Coldfusion: ======== <cffunction name="saveToDisk" access="remote" returntype="any"> <cfargument name="ext" type="string" required="true" default="jpg"> <cfargument name="img" type="binary" required="true"> ..... </cffunction> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267574 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4