Re: [flexcoders] saving a manipulated jpg
my question is, how can you upload to server, i cant do that :( On 1/25/07, Webdevotion [EMAIL PROTECTED] wrote: 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. -- - Franto http://blog.franto.com http://www.flashcoders.sk
Re: [flexcoders] saving a manipulated jpg
I have resolved the bytearray problem. Only question: how to apply blendmodes etc to the generated bitmap ?
Re: [flexcoders] saving a manipulated jpg
Here you go franto, http://blog.webqem.com.au/index.php/2006/09/08/flex-20-image-saving/ my problem still stands, anyone ?
[flexcoders] saving a manipulated jpg
Hello, I want to save a manipulated jpg file to the server. I can encode it to JPG etc, but the result is the original JPG. I want to preserve the effects that I have applied to the sprite containing the loaded JPG. // eg: this does copy the jpg, but not the blendmode bmp.draw(picture,null,null,picture.blendMode); Any ideas ?
Re: [flexcoders] saving a manipulated jpg
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.