开发者

SharePoint 2010 Silverlight web part - download multiple files from web to document library

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 ther开发者_运维知识库e another option? Files are a few MBs large, so the isolated storage size would have to be increased.

Thanks


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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜