我可以写客户端的PC机使用Silverlight上的文件 [英] Can i write a file on the client's PC using silverlight

查看:114
本文介绍了我可以写客户端的PC机使用Silverlight上的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要编写一个Web应用程序,它允许客户端从服务器下载一个文件,到目前为止好,但文件必须是一种连接codeD,所以我需要去code这在客户端上,并将其写入在客户的个人计算机上的文件。

I need to write a web application that allows the client to download a file from the server, so far so good, but the file must be kind of encoded, so i need to decode it on the client and write it on a file on the client's PC.

我可以这样做使用Silverlight?怎么样?

Can i do this using Silverlight? and how?

如果这是不可能,有另一种方法来做到这一点?有什么建议?

If it is not possible, there is another way to do it?. Any suggestions?

感谢

编辑:暴露布赖恩Genisio,我可以要求用户permision来保存文件,所以我认为,打开和保存对话框都ok了我的情况。但是,如果说这还不够,是有办法,有或没有用户交互,将文件保存在独立存储之外,例如模拟一个新的下载用户?

As exposed for Brian Genisio, i can ask for user permision to save the file, so i think that the open and save Dialogs are ok for my case. But in case that that's not enough, is there a way to, with or without user interaction, to save the file outside of the isolated storage, for example emulating a new download for the user?

推荐答案

在Silverlight 3.0,你将有机会获得读写通过<一个文件href="http://mtaulty.com/CommunityServer/blogs/mike%5Ftaultys%5Fblog/archive/2009/03/18/a-quick-look-at-silverlight-3-save-file-dialog.aspx">OpenFileDialog.在Silverlight 2.0,您可以访问隔离Sotrage,这将让您保存到沙箱中。你可能永远不会有完全访问文件系统,未经用户许可,但。

In Silverlight 3.0, you will have access to read and write files via the OpenFileDialog. In Silverlight 2.0, you have access to Isolated Sotrage, which will let you save to a sandbox. You will probably never have full access to the file system without user permission, though.

这篇关于我可以写客户端的PC机使用Silverlight上的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆