<?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: Converting an ImageSnapshot object into a Base-64 encoded string in Flex 3</title>
	<atom:link href="http://blog.flexexamples.com/2007/12/07/converting-an-imagesnapshot-object-into-a-base-64-encoded-string-in-flex-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/12/07/converting-an-imagesnapshot-object-into-a-base-64-encoded-string-in-flex-3/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ariston Darmayuda</title>
		<link>http://blog.flexexamples.com/2007/12/07/converting-an-imagesnapshot-object-into-a-base-64-encoded-string-in-flex-3/comment-page-1/#comment-2074</link>
		<dc:creator>Ariston Darmayuda</dc:creator>
		<pubDate>Tue, 14 Apr 2009 06:28:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/07/converting-an-imagesnapshot-object-into-a-base-64-encoded-string-in-flex-3/#comment-2074</guid>
		<description>Hi, I wonder can the flex open a file from client computer and convert it into base64 string. It&#039;s like file upload but we not upload the file, just read it and convert it into base64 and post it into  Webservice or Remote object service. Thanks.</description>
		<content:encoded><![CDATA[<p>Hi, I wonder can the flex open a file from client computer and convert it into base64 string. It&#8217;s like file upload but we not upload the file, just read it and convert it into base64 and post it into  Webservice or Remote object service. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tucker Watson</title>
		<link>http://blog.flexexamples.com/2007/12/07/converting-an-imagesnapshot-object-into-a-base-64-encoded-string-in-flex-3/comment-page-1/#comment-2076</link>
		<dc:creator>Tucker Watson</dc:creator>
		<pubDate>Sun, 15 Feb 2009 17:40:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/07/converting-an-imagesnapshot-object-into-a-base-64-encoded-string-in-flex-3/#comment-2076</guid>
		<description>Thanks for the info - I used the example to send the Base64 png to a PHP script that opens a download dialog box:
&lt;pre class=&quot;code&quot;&gt;
var urlRequest:URLRequest = new URLRequest(&quot;server/image.php&quot;);
urlRequest.method = URLRequestMethod.POST;
var vars:URLVariables = new URLVariables();
vars.image = b64String;
urlRequest.data = vars;
navigateToURL( urlRequest, &quot;_blank&quot; );
&lt;/pre&gt;

image.php contents:
&lt;pre class=&quot;code&quot;&gt;
&lt;?php
  header(&#039;Content-Type: image/png&#039;);
  header(&quot;Content-Disposition: attachment; filename=viewlet.png&quot;);
  echo base64_decode($_POST[&quot;image&quot;]);
?&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for the info &#8211; I used the example to send the Base64 png to a PHP script that opens a download dialog box:</p>
<pre class="code">
var urlRequest:URLRequest = new URLRequest("server/image.php");
urlRequest.method = URLRequestMethod.POST;
var vars:URLVariables = new URLVariables();
vars.image = b64String;
urlRequest.data = vars;
navigateToURL( urlRequest, "_blank" );
</pre>
<p>image.php contents:</p>
<pre class="code">
&lt;?php
  header('Content-Type: image/png');
  header("Content-Disposition: attachment; filename=viewlet.png");
  echo base64_decode($_POST["image"]);
?&gt;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.flexexamples.com/2007/12/07/converting-an-imagesnapshot-object-into-a-base-64-encoded-string-in-flex-3/comment-page-1/#comment-2073</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 05 Jan 2009 16:59:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/07/converting-an-imagesnapshot-object-into-a-base-64-encoded-string-in-flex-3/#comment-2073</guid>
		<description>I am using encoded images to send it via Soap to a php server.
php then creates the actual images and place them on a server.  then its available for flash to access it</description>
		<content:encoded><![CDATA[<p>I am using encoded images to send it via Soap to a php server.<br />
php then creates the actual images and place them on a server.  then its available for flash to access it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicholas</title>
		<link>http://blog.flexexamples.com/2007/12/07/converting-an-imagesnapshot-object-into-a-base-64-encoded-string-in-flex-3/comment-page-1/#comment-2075</link>
		<dc:creator>Nicholas</dc:creator>
		<pubDate>Thu, 07 Aug 2008 16:01:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/07/converting-an-imagesnapshot-object-into-a-base-64-encoded-string-in-flex-3/#comment-2075</guid>
		<description>Matt,

I, too, have wondered how Base64 encoding benefits a developer. The text has a larger file size than the image itself, and it has to be decoded to be useful. The only benefit I can see offhand is that Base64 text can be embedded in an xml file, which would be useful for small images that people didn&#039;t want to host somewhere. It would bloat the xml file somewhat, but for small images it wouldn&#039;t be too bad.

Can someone more knowledgeable in this area shed some light on the issue?</description>
		<content:encoded><![CDATA[<p>Matt,</p>
<p>I, too, have wondered how Base64 encoding benefits a developer. The text has a larger file size than the image itself, and it has to be decoded to be useful. The only benefit I can see offhand is that Base64 text can be embedded in an xml file, which would be useful for small images that people didn&#8217;t want to host somewhere. It would bloat the xml file somewhat, but for small images it wouldn&#8217;t be too bad.</p>
<p>Can someone more knowledgeable in this area shed some light on the issue?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://blog.flexexamples.com/2007/12/07/converting-an-imagesnapshot-object-into-a-base-64-encoded-string-in-flex-3/comment-page-1/#comment-2072</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 09 Apr 2008 13:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/07/converting-an-imagesnapshot-object-into-a-base-64-encoded-string-in-flex-3/#comment-2072</guid>
		<description>Nice, but how can I copy an image to the clipboard and paste that image into say, word or Excel or any other program that can display a JPG file??  I guess I don&#039;t see what this buys me... having the image as text based Base64 encoded?</description>
		<content:encoded><![CDATA[<p>Nice, but how can I copy an image to the clipboard and paste that image into say, word or Excel or any other program that can display a JPG file??  I guess I don&#8217;t see what this buys me&#8230; having the image as text based Base64 encoded?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

