<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Saving a file to the local disk in Silverlight</title><link>http://blogs.msdn.com/shrib/archive/2007/09/25/saving-a-file-to-the-local-disk-in-silverlight.aspx</link><description>All user code in Silverlight runs in a sandbox. Hence, for security reasons, there are no APIs to directly open local files from disk. However, there is a OpenFileDialog class which allows a Silverlight app to open files on disk. Human intervention is</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Techy News Blog &amp;raquo; Saving a file to the local disk in Silverlight</title><link>http://blogs.msdn.com/shrib/archive/2007/09/25/saving-a-file-to-the-local-disk-in-silverlight.aspx#5112952</link><pubDate>Tue, 25 Sep 2007 08:26:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5112952</guid><dc:creator>Techy News Blog » Saving a file to the local disk in Silverlight</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.artofbam.com/wordpress/?p=2668"&gt;http://www.artofbam.com/wordpress/?p=2668&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Saving a file to the local disk in Silverlight</title><link>http://blogs.msdn.com/shrib/archive/2007/09/25/saving-a-file-to-the-local-disk-in-silverlight.aspx#5124961</link><pubDate>Tue, 25 Sep 2007 20:09:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5124961</guid><dc:creator>jackbond</dc:creator><description>&lt;p&gt;I've made a few posts on the silverlight.net forums regarding the lack of a FileSaveDialog that would allow the user to be prompted for a path outside of protected storage. Ideally, once the user provided the path, an output stream would be returned to the caller. There are tons of applications, in addition to the text or image editors that you mentioned, that could use this feature.&lt;/p&gt;
</description></item><item><title>re: Saving a file to the local disk in Silverlight</title><link>http://blogs.msdn.com/shrib/archive/2007/09/25/saving-a-file-to-the-local-disk-in-silverlight.aspx#5131027</link><pubDate>Wed, 26 Sep 2007 02:26:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5131027</guid><dc:creator>shrib</dc:creator><description>&lt;p&gt;Yes, I agree that save functionality would be quite useful. Will pass along the comment to the Silverlight team&lt;/p&gt;
</description></item><item><title>re: Saving a file to the local disk in Silverlight</title><link>http://blogs.msdn.com/shrib/archive/2007/09/25/saving-a-file-to-the-local-disk-in-silverlight.aspx#5372602</link><pubDate>Tue, 09 Oct 2007 01:16:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5372602</guid><dc:creator>shrib</dc:creator><description>&lt;p&gt;Related discussion on &lt;a rel="nofollow" target="_new" href="http://silverlight.net/forums/t/4236.aspx"&gt;http://silverlight.net/forums/t/4236.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>在Silverlight中向本地文件系统存储文件</title><link>http://blogs.msdn.com/shrib/archive/2007/09/25/saving-a-file-to-the-local-disk-in-silverlight.aspx#8774906</link><pubDate>Sat, 26 Jul 2008 11:36:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8774906</guid><dc:creator>花间蕊</dc:creator><description>&lt;p&gt;SavingafiletothelocaldiskinSilverlight AllusercodeinSilverlightrunsinasandbox.H...&lt;/p&gt;
</description></item><item><title>在Silverlight中向本地文件系统存储文件</title><link>http://blogs.msdn.com/shrib/archive/2007/09/25/saving-a-file-to-the-local-disk-in-silverlight.aspx#8811434</link><pubDate>Sun, 03 Aug 2008 06:21:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8811434</guid><dc:creator>花间蕊</dc:creator><description>&lt;p&gt;SavingafiletothelocaldiskinSilverlight AllusercodeinSilverlightrunsinasandbox.H...&lt;/p&gt;
</description></item><item><title>re: Saving a file to the local disk in Silverlight</title><link>http://blogs.msdn.com/shrib/archive/2007/09/25/saving-a-file-to-the-local-disk-in-silverlight.aspx#8889929</link><pubDate>Sat, 23 Aug 2008 09:23:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8889929</guid><dc:creator>Daniel Bryars</dc:creator><description>&lt;p&gt;Since XP SP2 IE blocks the automatic presentation of the Save As dialog box for anything but when the user directly clicks on an element. IE doesn't treat (as it shouldn't) the call to System.Windows.Browser.HtmlPage::Navigate from Silverlight as a direct user click, so it show's a warning bar on the top of the screen. The onerous problem is that it refreshes the page when you click on the bar. This makes sense for an HTML page but sucks for a LOB app written in Silverlight (returning the user to the login page in my case.) &lt;/p&gt;
&lt;p&gt;Furthermore it doesn't remember the user's setting on a site by site basis (as is available for the pop up blocker.) You can of course change the settings for IE, but this is beyond most of my users (in fact some of them won't have the authorisation to change these settings.)&lt;/p&gt;
&lt;p&gt;So I really really want a Save as Dialog box like the Open As dialog box from which I could stream a file to disk with. But I'd settle for a button which encapsulated the whole thing and just saved a file to disk from a server.&lt;/p&gt;
&lt;p&gt;The former is better for me because I can do clever things like decrypt the file in Silverlight using a private key which is never sent to the server etc. I think if you only allow the Save As Dialog from a direct user click then it's more secure than all these hacks people will resort to in future.&lt;/p&gt;
</description></item></channel></rss>