Another problem that I have is that my cfc method will not accept my
ByteArray.
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>
It always throws an error: The argument IMG passed to function saveToDisk()
is not of type binary.