<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Flex 2.0 Image Saving.</title>
	<atom:link href="http://blog.webqem.com.au/2006/09/08/flex-20-image-saving/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.webqem.com.au/2006/09/08/flex-20-image-saving/</link>
	<description>the webqem blog</description>
	<lastBuildDate>Sat, 19 Sep 2009 10:32:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: gloria</title>
		<link>http://blog.webqem.com.au/2006/09/08/flex-20-image-saving/comment-page-1/#comment-153166</link>
		<dc:creator>gloria</dc:creator>
		<pubDate>Tue, 21 Jul 2009 06:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.webqem.com.au/index.php/2006/09/08/flex-20-image-saving/#comment-153166</guid>
		<description>This function is what I am looking for in one of my Flex projects, but as a newby the code snippets are not wholly coherent to me. 

Can you PLEASE :) make the project available as a zip? I was considering Sothink sqf to flex but would love it if you could share this in entirety. 

pretty please??</description>
		<content:encoded><![CDATA[<p>This function is what I am looking for in one of my Flex projects, but as a newby the code snippets are not wholly coherent to me. </p>
<p>Can you PLEASE :) make the project available as a zip? I was considering Sothink sqf to flex but would love it if you could share this in entirety. </p>
<p>pretty please??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: junior</title>
		<link>http://blog.webqem.com.au/2006/09/08/flex-20-image-saving/comment-page-1/#comment-133728</link>
		<dc:creator>junior</dc:creator>
		<pubDate>Wed, 26 Nov 2008 22:26:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.webqem.com.au/index.php/2006/09/08/flex-20-image-saving/#comment-133728</guid>
		<description>I have one question:
Do you know if this cfc working with coldfusion 8? I have tried and I got one error!
In coldfusion 7 working fine!</description>
		<content:encoded><![CDATA[<p>I have one question:<br />
Do you know if this cfc working with coldfusion 8? I have tried and I got one error!<br />
In coldfusion 7 working fine!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike S</title>
		<link>http://blog.webqem.com.au/2006/09/08/flex-20-image-saving/comment-page-1/#comment-33098</link>
		<dc:creator>Mike S</dc:creator>
		<pubDate>Mon, 05 Feb 2007 00:35:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.webqem.com.au/index.php/2006/09/08/flex-20-image-saving/#comment-33098</guid>
		<description>Ah, yes ColdFusion needs to be updated to version 7.0.2 to use AMF3 which is needed to send a ByteArray. So without these capabilities the simplicity is lost some what. Sorry for not pointing out those requirements.</description>
		<content:encoded><![CDATA[<p>Ah, yes ColdFusion needs to be updated to version 7.0.2 to use AMF3 which is needed to send a ByteArray. So without these capabilities the simplicity is lost some what. Sorry for not pointing out those requirements.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Webdevotion</title>
		<link>http://blog.webqem.com.au/2006/09/08/flex-20-image-saving/comment-page-1/#comment-32335</link>
		<dc:creator>Webdevotion</dc:creator>
		<pubDate>Fri, 26 Jan 2007 02:25:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.webqem.com.au/index.php/2006/09/08/flex-20-image-saving/#comment-32335</guid>
		<description>Hey Mike,

The project is an AS3 only project, no mxml involved, only AS3 in Flex Builder.
My guess is that it&#039;s an AMF0 - AMF3 problem or it could be a coldfusion
version issue.

Coldfusion would not accept my img data as a binary.

I fixed the problem by encoding the jpgencoded bytearray into a base64 string.
That base64 string is send to my cfc method, which decodes it into a binary
using toBinary( myBase64EncodedString ).

This binary is written with the cffile tag.

Quite a bug hunt, but it was worth it!  The base64 encoder is not an Adobe class;
as it is not a part of the AS3 packages, but it&#039;s available in the Flex packages.
I downloaded a class I found on the net.</description>
		<content:encoded><![CDATA[<p>Hey Mike,</p>
<p>The project is an AS3 only project, no mxml involved, only AS3 in Flex Builder.<br />
My guess is that it&#8217;s an AMF0 &#8211; AMF3 problem or it could be a coldfusion<br />
version issue.</p>
<p>Coldfusion would not accept my img data as a binary.</p>
<p>I fixed the problem by encoding the jpgencoded bytearray into a base64 string.<br />
That base64 string is send to my cfc method, which decodes it into a binary<br />
using toBinary( myBase64EncodedString ).</p>
<p>This binary is written with the cffile tag.</p>
<p>Quite a bug hunt, but it was worth it!  The base64 encoder is not an Adobe class;<br />
as it is not a part of the AS3 packages, but it&#8217;s available in the Flex packages.<br />
I downloaded a class I found on the net.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike S</title>
		<link>http://blog.webqem.com.au/2006/09/08/flex-20-image-saving/comment-page-1/#comment-32264</link>
		<dc:creator>Mike S</dc:creator>
		<pubDate>Thu, 25 Jan 2007 04:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.webqem.com.au/index.php/2006/09/08/flex-20-image-saving/#comment-32264</guid>
		<description>Wedevotion

When you say no Flex involved do you mean you are using the flash 9/CS3 beta or did you mean no MXML involved.

How did you set up the remoting object - remoteCon?? 

I see you have renamed the ColdFusion function did you change anything else??

If you send me a more complete code example I can take a look for you.

Mike.</description>
		<content:encoded><![CDATA[<p>Wedevotion</p>
<p>When you say no Flex involved do you mean you are using the flash 9/CS3 beta or did you mean no MXML involved.</p>
<p>How did you set up the remoting object &#8211; remoteCon?? </p>
<p>I see you have renamed the ColdFusion function did you change anything else??</p>
<p>If you send me a more complete code example I can take a look for you.</p>
<p>Mike.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wedevotion</title>
		<link>http://blog.webqem.com.au/2006/09/08/flex-20-image-saving/comment-page-1/#comment-32259</link>
		<dc:creator>Wedevotion</dc:creator>
		<pubDate>Thu, 25 Jan 2007 03:26:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.webqem.com.au/index.php/2006/09/08/flex-20-image-saving/#comment-32259</guid>
		<description>Thanks for this great example.
However, I ran into a problem in a AS3 only project, no Flex involved.
Do you have an idea what is happening here ?


This code always throws an error:  The argument IMG passed to function saveToDisk() is not of type binary. 

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);
remoteCon.saveToDisk(&quot;png&quot;,myPNG);

Coldfusion:
========

      
      
      ....




Btw: these classes are now an integral part of the open source Adobe AS3 corelib:
http://code.google.com/p/as3corelib/</description>
		<content:encoded><![CDATA[<p>Thanks for this great example.<br />
However, I ran into a problem in a AS3 only project, no Flex involved.<br />
Do you have an idea what is happening here ?</p>
<p>This code always throws an error:  The argument IMG passed to function saveToDisk() is not of type binary. </p>
<p>Actionscript:<br />
=========<br />
var picture:Picture = Slideshow.getInstance().getPicture();<br />
 var bmp:BitmapData = new BitmapData(picture.width,picture.height,false);<br />
 bmp.draw(picture);<br />
 var myPNG:ByteArray = PNGEncoder.encode(bmp);<br />
remoteCon.saveToDisk(&#8220;png&#8221;,myPNG);</p>
<p>Coldfusion:<br />
========</p>
<p>      &#8230;.</p>
<p>Btw: these classes are now an integral part of the open source Adobe AS3 corelib:<br />
<a href="http://code.google.com/p/as3corelib/" rel="nofollow">http://code.google.com/p/as3corelib/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Hindman</title>
		<link>http://blog.webqem.com.au/2006/09/08/flex-20-image-saving/comment-page-1/#comment-2385</link>
		<dc:creator>Jeff Hindman</dc:creator>
		<pubDate>Fri, 10 Nov 2006 03:48:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.webqem.com.au/index.php/2006/09/08/flex-20-image-saving/#comment-2385</guid>
		<description>Stunningly simple indeed ... should be a snap to add a browse capability for images in case the user doesn&#039;t have a webcam :) Impressive!

--Jeff</description>
		<content:encoded><![CDATA[<p>Stunningly simple indeed &#8230; should be a snap to add a browse capability for images in case the user doesn&#8217;t have a webcam :) Impressive!</p>
<p>&#8211;Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hilary Bridel</title>
		<link>http://blog.webqem.com.au/2006/09/08/flex-20-image-saving/comment-page-1/#comment-1051</link>
		<dc:creator>Hilary Bridel</dc:creator>
		<pubDate>Mon, 18 Sep 2006 01:27:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.webqem.com.au/index.php/2006/09/08/flex-20-image-saving/#comment-1051</guid>
		<description>Wow,
How easy is that. Nice one Mike...

Hilary

--</description>
		<content:encoded><![CDATA[<p>Wow,<br />
How easy is that. Nice one Mike&#8230;</p>
<p>Hilary</p>
<p>&#8211;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

