<?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 Example: Right-Click -&gt; Save Image As</title>
	<atom:link href="http://www.jamesward.com/2009/07/09/flex-example-right-click-save-image-as/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jamesward.com/2009/07/09/flex-example-right-click-save-image-as/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=flex-example-right-click-save-image-as</link>
	<description>Heroku &#124; Java &#124; Scala &#124; Cloud &#124; Open Source &#124; Linux</description>
	<lastBuildDate>Wed, 08 Feb 2012 21:11:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Jamie McDaniel</title>
		<link>http://www.jamesward.com/2009/07/09/flex-example-right-click-save-image-as/comment-page-1/#comment-163665</link>
		<dc:creator>Jamie McDaniel</dc:creator>
		<pubDate>Tue, 19 Jul 2011 19:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.org/wordpress/?p=144#comment-163665</guid>
		<description>Thanks! For both GIF and PNG files, it is 45 and 17 instead of 49 and 17.  I used a Hex Editor program to compare them.</description>
		<content:encoded><![CDATA[<p>Thanks! For both GIF and PNG files, it is 45 and 17 instead of 49 and 17.  I used a Hex Editor program to compare them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Ward</title>
		<link>http://www.jamesward.com/2009/07/09/flex-example-right-click-save-image-as/comment-page-1/#comment-161064</link>
		<dc:creator>James Ward</dc:creator>
		<pubDate>Fri, 03 Dec 2010 22:15:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.org/wordpress/?p=144#comment-161064</guid>
		<description>You could do this on the server with Java libraries for creating / modifying Word docs.</description>
		<content:encoded><![CDATA[<p>You could do this on the server with Java libraries for creating / modifying Word docs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Faizal</title>
		<link>http://www.jamesward.com/2009/07/09/flex-example-right-click-save-image-as/comment-page-1/#comment-161060</link>
		<dc:creator>Faizal</dc:creator>
		<pubDate>Fri, 03 Dec 2010 08:38:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.org/wordpress/?p=144#comment-161060</guid>
		<description>Hi

Anyone have an idea how to insert an image into a .doc file in flex.
I have the snapshot of the image, and I am able to save it as a .png file, but i need to insert this into a .doc file.

Thanks 
Faizal</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Anyone have an idea how to insert an image into a .doc file in flex.<br />
I have the snapshot of the image, and I am able to save it as a .png file, but i need to insert this into a .doc file.</p>
<p>Thanks<br />
Faizal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stu</title>
		<link>http://www.jamesward.com/2009/07/09/flex-example-right-click-save-image-as/comment-page-1/#comment-160285</link>
		<dc:creator>Stu</dc:creator>
		<pubDate>Sun, 12 Sep 2010 18:27:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.org/wordpress/?p=144#comment-160285</guid>
		<description>doesn&#039;t seem to work for pngs at least.

load the data using URLLoader instead to get the raw image data, then you can convert it to a Bitmap and display that.</description>
		<content:encoded><![CDATA[<p>doesn&#8217;t seem to work for pngs at least.</p>
<p>load the data using URLLoader instead to get the raw image data, then you can convert it to a Bitmap and display that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Ward</title>
		<link>http://www.jamesward.com/2009/07/09/flex-example-right-click-save-image-as/comment-page-1/#comment-159221</link>
		<dc:creator>James Ward</dc:creator>
		<pubDate>Fri, 02 Jul 2010 20:54:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.org/wordpress/?p=144#comment-159221</guid>
		<description>By looking at the content.loaderInfo.bytes and comparing them with the original image&#039;s bytes.</description>
		<content:encoded><![CDATA[<p>By looking at the content.loaderInfo.bytes and comparing them with the original image&#8217;s bytes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Baltazar</title>
		<link>http://www.jamesward.com/2009/07/09/flex-example-right-click-save-image-as/comment-page-1/#comment-159220</link>
		<dc:creator>Adrian Baltazar</dc:creator>
		<pubDate>Fri, 02 Jul 2010 20:42:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.org/wordpress/?p=144#comment-159220</guid>
		<description>Great work, thanks for the 17 and  49 numbers. How do you find that?</description>
		<content:encoded><![CDATA[<p>Great work, thanks for the 17 and  49 numbers. How do you find that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Save Image As&#8230; now as a separate tag &#171; The Combined Corner</title>
		<link>http://www.jamesward.com/2009/07/09/flex-example-right-click-save-image-as/comment-page-1/#comment-157726</link>
		<dc:creator>Save Image As&#8230; now as a separate tag &#171; The Combined Corner</dc:creator>
		<pubDate>Thu, 13 Aug 2009 20:36:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.org/wordpress/?p=144#comment-157726</guid>
		<description>[...] check out the original implementation by James Ward&#8230; it might suite your needs better&#8230; http://www.jamesward.com/blog/2009/07/09/flex-example-right-click-save-image-as/      leave a comment    &#171; EverythingFlex now on [...]</description>
		<content:encoded><![CDATA[<p>[...] check out the original implementation by James Ward&#8230; it might suite your needs better&#8230; <a href="http://www.jamesward.com/blog/2009/07/09/flex-example-right-click-save-image-as/" rel="nofollow">http://www.jamesward.com/blog/2009/07/09/flex-example-right-click-save-image-as/</a>      leave a comment    &laquo; EverythingFlex now on [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miha Blazin</title>
		<link>http://www.jamesward.com/2009/07/09/flex-example-right-click-save-image-as/comment-page-1/#comment-157582</link>
		<dc:creator>Miha Blazin</dc:creator>
		<pubDate>Tue, 14 Jul 2009 08:39:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.org/wordpress/?p=144#comment-157582</guid>
		<description>I think your sample is great and a thing that constantly gets forgotten when building RIAs with Flex. I do agree the Flex components should provide this functionality (if not by default then at least as a property to set).  I do find it weird although, why Acrobat.com Buzzword application ignores the right click context menu features and instead shows a new button everytime you select some text, which makes it really unnaturaly to work with a Rich Text Editor (at least in the traditional way).  Is that perhaps because the right click is (or will be) a problem on some platforms that support (or will support) the Adobe Flash Platofrm - like Mobile devices.</description>
		<content:encoded><![CDATA[<p>I think your sample is great and a thing that constantly gets forgotten when building RIAs with Flex. I do agree the Flex components should provide this functionality (if not by default then at least as a property to set).  I do find it weird although, why Acrobat.com Buzzword application ignores the right click context menu features and instead shows a new button everytime you select some text, which makes it really unnaturaly to work with a Rich Text Editor (at least in the traditional way).  Is that perhaps because the right click is (or will be) a problem on some platforms that support (or will support) the Adobe Flash Platofrm &#8211; like Mobile devices.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nehul</title>
		<link>http://www.jamesward.com/2009/07/09/flex-example-right-click-save-image-as/comment-page-1/#comment-157581</link>
		<dc:creator>Nehul</dc:creator>
		<pubDate>Tue, 14 Jul 2009 00:11:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.org/wordpress/?p=144#comment-157581</guid>
		<description>one more thing in your MXML do this 

&lt;custom:SavableImage id=&quot;saveImage&quot;  name=&quot;&quot; &gt;

in above code filename will be image name coming from server. I have file name set in database column and actual file on server. So it was pretty easy to replace filename to {javadto.imagefilename}

Now in actionscript 

===========================
var bmp:Bitmap = Bitmap(this.content);
var myEncoder:JPGEncoder = new JPGEncoder(75);
var byte:ByteArray = myEncoder.encode(bmp.bitmapData);
var fr:FileReference = new FileReference();
fr.save(byte, this.name);
=========================

save dialog will have same file name as source.</description>
		<content:encoded><![CDATA[<p>one more thing in your MXML do this </p>
<p>&lt;custom:SavableImage id=&quot;saveImage&quot;  name=&quot;&#8221; &gt;</p>
<p>in above code filename will be image name coming from server. I have file name set in database column and actual file on server. So it was pretty easy to replace filename to {javadto.imagefilename}</p>
<p>Now in actionscript </p>
<p>===========================<br />
var bmp:Bitmap = Bitmap(this.content);<br />
var myEncoder:JPGEncoder = new JPGEncoder(75);<br />
var byte:ByteArray = myEncoder.encode(bmp.bitmapData);<br />
var fr:FileReference = new FileReference();<br />
fr.save(byte, this.name);<br />
=========================</p>
<p>save dialog will have same file name as source.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nehul</title>
		<link>http://www.jamesward.com/2009/07/09/flex-example-right-click-save-image-as/comment-page-1/#comment-157580</link>
		<dc:creator>Nehul</dc:creator>
		<pubDate>Mon, 13 Jul 2009 23:48:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamesward.org/wordpress/?p=144#comment-157580</guid>
		<description>I have re-encode the image on client here is the source

===========================
    var bmp:Bitmap = Bitmap(this.content);
    var myEncoder:JPGEncoder = new JPGEncoder(75);
    var byte:ByteArray = myEncoder.encode(bmp.bitmapData);      
    var fr:FileReference = new FileReference();
    fr.save(byte, &quot;test.jpg&quot;);      
=========================

You have add this in saveImageAs  function in source file SaveableImage.cs in Jamesward packge.

You need two additional file JPGEncodeer.as and BitString.as for conversion on client side. I can&#039;t attach them on blog.</description>
		<content:encoded><![CDATA[<p>I have re-encode the image on client here is the source</p>
<p>===========================<br />
    var bmp:Bitmap = Bitmap(this.content);<br />
    var myEncoder:JPGEncoder = new JPGEncoder(75);<br />
    var byte:ByteArray = myEncoder.encode(bmp.bitmapData);<br />
    var fr:FileReference = new FileReference();<br />
    fr.save(byte, &#8220;test.jpg&#8221;);<br />
=========================</p>
<p>You have add this in saveImageAs  function in source file SaveableImage.cs in Jamesward packge.</p>
<p>You need two additional file JPGEncodeer.as and BitString.as for conversion on client side. I can&#8217;t attach them on blog.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

