Page view counter
Downloading or uploading content into a file using Silverlight
Last post 09-25-2007 5:16 PM by luisabreu. 5 replies.
Sort Posts:
09-19-2007 7:09 PM
Downloading or uploading content into a file using Silverlight

I understand IsolatedStorage but for my application I need to read and write from the local computers filesystem. 

 Is there a mechanism to elevate the privs of a sliverlight app?  I'm totally fine with the user getting a pseudo LUA screen or whatever,  what can I do?

 for my application I need to be able to read/write/seek inside the file

 

thanks!

chris12345

Loading...
Joined on 09-19-2007
Posts 2
09-20-2007 1:07 AM
Re: Downloading or uploading content into a file using Silverlight

If you are using 1.1, there is a file open dialog that gives you a stream to read the contents of the file. In the current version, if you want to save a file to the local file system, you have to upload it to the server, and then provide a download link.

Jack Bond

Khet - The first Silverlight multiplayer game

Zork I: The Great Underground Empire

jackbond

Loading...
Joined on 03-21-2007
Posts 429
09-20-2007 1:53 PM
Re: Downloading or uploading content into a file using Silverlight

If you are targeting windows-only, use WPF. You'll get more capabilities (such as local access, if your app falls into the correct zones).

If cross-platform, I agree with the previous poster.

Pete

If your question was answered, please mark the response as the answer.

Silverlight.net Moderator
MVP: Visual Developer - Client Application Development
POKE 53280,0 - My Blog

Psychlist1972

Loading...
Joined on 10-12-2004
Maryland, USA
Posts 833
09-25-2007 4:34 PM
Re: Re: Downloading or uploading content into a file using Silverlight

I agree that this feature is much-needed.  We recently wrote a tool that manipulates images in-browser before upload.

In Firefox, you can use the data:uri specification to display certain types of files (HTML, text, images) which the user can then right-click and Save locally.

With Silverlight 1.1, we're given the power to perform substantial file manipulation client-side, it only makes sense that we are able to do something with these files other than relaying them back to the client through servers. I haven't been able to identify a way to do this with Flash, either, so this would give Silverlight a chance to innovate.

The security implications would be the same as downloading a file from a server.

jrpowers

Loading...
Joined on 09-21-2007
Posts 26
09-25-2007 4:40 PM
Re: Re: Downloading or uploading content into a file using Silverlight

From some of the posts here, I don't think people realize how important a feature a FileSave dialog is. Fortunately, it looks like the Silverlight team is aware of it. See, http://blogs.msdn.com/shrib/archive/2007/09/25/saving-a-file-to-the-local-disk-in-silverlight.aspx

Jack Bond

Khet - The first Silverlight multiplayer game

Zork I: The Great Underground Empire

jackbond

Loading...
Joined on 03-21-2007
Posts 429
09-25-2007 5:16 PM
Re: Re: Downloading or uploading content into a file using Silverlight

hello.

well, i can agree with it...it's also important to change the way the current file dialog used for opening files works since it really isn't well integrated with the existing controls...

luisabreu

Loading...
Joined on 04-30-2007
Posts 612
Microsoft Communities