0
votes

There is a need to download multiple files from a web location to the SharePoint 2010 document library using a Silverlight 4.0 web part.

Is it possible to achieve this without downloading files to the local computer and then uploading them back to the SP server? How would this be done?

Can Silverligth open a stream as it's running in the sandbox? Having an out of the browser application with elevated privileges is not an option.

If not, must isolated storage be used as we have multiple files to be downloaded and re-uploaded to the document library? Is there another option? Files are a few MBs large, so the isolated storage size would have to be increased.

Thanks

1
does it have to be a silverlight webpart? because you are quite limited with the silverlight object model - with a "normal" visual webpart you could use the server object model...also what do you mean with "quite large"?int32
Yes, it would have to be a Silverlight webpart as there are other features besides this one. File size would be a few MBs and the SL isolated storage(not OOB) is limited to 1MB.mrBob
okidok, ive added an answer..int32

1 Answers

0
votes

Yes, you can upload files to SharePoint without temporary saving it to disc. Somebody had a similar question, the only difference is that he reads the byte array from disk. To download/stream the content from a different web address, i'd suggest you use the WebClient class (which also supports async downloading). I don't think you need to adjust the isolated storage.

Just found another another article on google, you might want to change that code to your like.

Note that SharePoint has a (default) max. upload size of 50mb (iis7 has 30mb) - you can change this in the web.config, but it needs to be applied to all servers).