<?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: Downloading files in Flex using the FileReference class</title>
	<atom:link href="http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/</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: Thinh</title>
		<link>http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/comment-page-1/#comment-9405</link>
		<dc:creator>Thinh</dc:creator>
		<pubDate>Tue, 19 Jul 2011 00:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/#comment-9405</guid>
		<description>I found a bug in adobe jira:

https://bugs.adobe.com/jira/browse/FP-2022

Please vote and watch this item.

Tks.</description>
		<content:encoded><![CDATA[<p>I found a bug in adobe jira:</p>
<p><a href="https://bugs.adobe.com/jira/browse/FP-2022" rel="nofollow">https://bugs.adobe.com/jira/browse/FP-2022</a></p>
<p>Please vote and watch this item.</p>
<p>Tks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre</title>
		<link>http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/comment-page-1/#comment-9241</link>
		<dc:creator>Andre</dc:creator>
		<pubDate>Tue, 24 May 2011 18:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/#comment-9241</guid>
		<description>Peter, congratulations, I´m trying to use something similar, I would like to save the modifications in DataGrid in the loaded xml thru FileReference, below the functions, when I try to save the local xml is not saving the changes that the user make on function “texto_painel_change”, I really dont know how to transfer the content typed in the function “item_click” to the function “salvar_xml_click”, if you please could give a hand:

abrir_topico.addEventListener(MouseEvent.MOUSE_DOWN, procurar_topico);
function procurar_topico(e:Event) 
{
    file = new FileReference();
    file.addEventListener(Event.SELECT,completou_topico);
    var docFilter:FileFilter = new FileFilter(&quot;Documents&quot;,&quot;topico*.xml&quot;);
    file.browse([docFilter]);
}
function completou_topico(e:Event) 
{
    file.addEventListener(Event.COMPLETE, carrega_topico);
    file.load();
}

function carrega_topico(e:Event) 
{
	xml = new XML(e.target.data);
	myGrid.dataProvider = new DataProvider();
	for(var i=0;i&lt;xml.telas.tela.length();i++)
	{
		myGrid.addItem({label:xml.telas.tela.texto[i]});
	}
}
salvar_xml.addEventListener(MouseEvent.MOUSE_DOWN, salvar_xml_click)
function salvar_xml_click(e:MouseEvent):void
{
var file:FileReference = new FileReference();
file.save(xml,”.xml”);
texto_painel.htmlText;
FileFilter(“Documents”,”*.xml”);
}

myGrid.addEventListener(MouseEvent.CLICK, item_click)
function item_click(e:Event):void
{
texto_painel.htmlText = myGrid.selectedItem.label;
}

texto_painel.addEventListener(Event.CHANGE, texto_painel_change)
function texto_painel_change(e:Event):void
{
myGrid.selectedItem.label = texto_painel.htmlText;
}</description>
		<content:encoded><![CDATA[<p>Peter, congratulations, I´m trying to use something similar, I would like to save the modifications in DataGrid in the loaded xml thru FileReference, below the functions, when I try to save the local xml is not saving the changes that the user make on function “texto_painel_change”, I really dont know how to transfer the content typed in the function “item_click” to the function “salvar_xml_click”, if you please could give a hand:</p>
<p>abrir_topico.addEventListener(MouseEvent.MOUSE_DOWN, procurar_topico);<br />
function procurar_topico(e:Event)<br />
{<br />
    file = new FileReference();<br />
    file.addEventListener(Event.SELECT,completou_topico);<br />
    var docFilter:FileFilter = new FileFilter(&#8220;Documents&#8221;,&#8221;topico*.xml&#8221;);<br />
    file.browse([docFilter]);<br />
}<br />
function completou_topico(e:Event)<br />
{<br />
    file.addEventListener(Event.COMPLETE, carrega_topico);<br />
    file.load();<br />
}</p>
<p>function carrega_topico(e:Event)<br />
{<br />
	xml = new XML(e.target.data);<br />
	myGrid.dataProvider = new DataProvider();<br />
	for(var i=0;i&lt;xml.telas.tela.length();i++)<br />
	{<br />
		myGrid.addItem({label:xml.telas.tela.texto[i]});<br />
	}<br />
}<br />
salvar_xml.addEventListener(MouseEvent.MOUSE_DOWN, salvar_xml_click)<br />
function salvar_xml_click(e:MouseEvent):void<br />
{<br />
var file:FileReference = new FileReference();<br />
file.save(xml,”.xml”);<br />
texto_painel.htmlText;<br />
FileFilter(“Documents”,”*.xml”);<br />
}</p>
<p>myGrid.addEventListener(MouseEvent.CLICK, item_click)<br />
function item_click(e:Event):void<br />
{<br />
texto_painel.htmlText = myGrid.selectedItem.label;<br />
}</p>
<p>texto_painel.addEventListener(Event.CHANGE, texto_painel_change)<br />
function texto_painel_change(e:Event):void<br />
{<br />
myGrid.selectedItem.label = texto_painel.htmlText;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jag</title>
		<link>http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/comment-page-1/#comment-8930</link>
		<dc:creator>jag</dc:creator>
		<pubDate>Fri, 28 Jan 2011 12:54:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/#comment-8930</guid>
		<description>How to upload file into server using jsp and flex</description>
		<content:encoded><![CDATA[<p>How to upload file into server using jsp and flex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergi</title>
		<link>http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/comment-page-1/#comment-8614</link>
		<dc:creator>Sergi</dc:creator>
		<pubDate>Tue, 07 Dec 2010 16:14:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/#comment-8614</guid>
		<description>Hi!

Do you know if Is there any way in flex4 to directly open the downloaded file (a byte[]), but without using navigateURL?

thank you!!</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>Do you know if Is there any way in flex4 to directly open the downloaded file (a byte[]), but without using navigateURL?</p>
<p>thank you!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ecb</title>
		<link>http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/comment-page-1/#comment-8184</link>
		<dc:creator>ecb</dc:creator>
		<pubDate>Mon, 02 Aug 2010 02:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/#comment-8184</guid>
		<description>Hi, is there any way to get it to work with a file URI? eg: file://///123.45.56.789/xxx/yyy/myFile.doc    ?
I tried it a few different ways but I got a few different errors, such as the security sandbox error or that the remote URL protocol must be HTTP or HTTPS.... Any help would be appreciated. Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Hi, is there any way to get it to work with a file URI? eg: file://///123.45.56.789/xxx/yyy/myFile.doc    ?<br />
I tried it a few different ways but I got a few different errors, such as the security sandbox error or that the remote URL protocol must be HTTP or HTTPS&#8230;. Any help would be appreciated. Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco A.</title>
		<link>http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/comment-page-1/#comment-8172</link>
		<dc:creator>Marco A.</dc:creator>
		<pubDate>Thu, 29 Jul 2010 10:18:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/#comment-8172</guid>
		<description>Hi,, I tested this example..  it worked nice :)  . I  wonder, how big must be the files to be downloaded by flex..  for example, it is posible to handle a file igger than 4 Gb.  ? 

MArco</description>
		<content:encoded><![CDATA[<p>Hi,, I tested this example..  it worked nice :)  . I  wonder, how big must be the files to be downloaded by flex..  for example, it is posible to handle a file igger than 4 Gb.  ? </p>
<p>MArco</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe James</title>
		<link>http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/comment-page-1/#comment-8061</link>
		<dc:creator>Joe James</dc:creator>
		<pubDate>Fri, 02 Jul 2010 17:26:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/#comment-8061</guid>
		<description>I can not seem to get the fileRef. download() method  to work whith in a resultevent. I have a remote call that reurns a file in a url string.  I can open the url out side of my application but I can not doenload the file. The fileReference does not seem to work with in a result event. Has anybody ever come accross this?</description>
		<content:encoded><![CDATA[<p>I can not seem to get the fileRef. download() method  to work whith in a resultevent. I have a remote call that reurns a file in a url string.  I can open the url out side of my application but I can not doenload the file. The fileReference does not seem to work with in a result event. Has anybody ever come accross this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry Rabinowitz</title>
		<link>http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/comment-page-1/#comment-7773</link>
		<dc:creator>Henry Rabinowitz</dc:creator>
		<pubDate>Fri, 21 May 2010 19:06:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/#comment-7773</guid>
		<description>Hi Peter,
Thanks for this and your many other good examples.
I have a very basic question.
Is it possible to have a single button that will offer the user the choice to Save or Open the given file?
It seems this is a frequent way that files are offered in Windows.
--Henry</description>
		<content:encoded><![CDATA[<p>Hi Peter,<br />
Thanks for this and your many other good examples.<br />
I have a very basic question.<br />
Is it possible to have a single button that will offer the user the choice to Save or Open the given file?<br />
It seems this is a frequent way that files are offered in Windows.<br />
&#8211;Henry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaheel</title>
		<link>http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/comment-page-1/#comment-7316</link>
		<dc:creator>Shaheel</dc:creator>
		<pubDate>Mon, 22 Mar 2010 09:31:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/#comment-7316</guid>
		<description>Yes you can do this by removing: 
toolTip=&quot;{FILE_URL}&quot;
in your button. This will  only hide the download link from users but i do not know how secure it is.

Regards,
Shaheel</description>
		<content:encoded><![CDATA[<p>Yes you can do this by removing:<br />
toolTip=&#8221;{FILE_URL}&#8221;<br />
in your button. This will  only hide the download link from users but i do not know how secure it is.</p>
<p>Regards,<br />
Shaheel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mmm</title>
		<link>http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/comment-page-1/#comment-6699</link>
		<dc:creator>mmm</dc:creator>
		<pubDate>Tue, 29 Dec 2009 15:05:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/07/28/downloading-files-in-flex-using-the-filereference-class/#comment-6699</guid>
		<description>I have the same issue when downloading kml files and the user is using IE7 (using IE6 is working ok). Please let me know if you found a solution.
thanks</description>
		<content:encoded><![CDATA[<p>I have the same issue when downloading kml files and the user is using IE7 (using IE6 is working ok). Please let me know if you found a solution.<br />
thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

