Upload large files in Silverlight

回眸只為那壹抹淺笑 提交于 2019-12-24 05:53:08

问题


Is it possible to upload large files in Silverlight w/o resorting to the "chunked upload" or loading all of the file data into memmory?

I read something about uploading using Silverlight streaming API, does that work and will it truly stream the data w/o preloading all of it in mem upfront first?


回答1:


Silverlight doesn't implement any kind of "stream upload". Before post request goes to the server all data you want to send should be writen into the stream. So if you need to send truly large file I would say multiple posts with "transfer-encoding: chunked" (i.e chunked upload) is the way to go.




回答2:


Chunking might help you speed up your uploads as well: Parallel upload to Azure via Silverlight Control



来源:https://stackoverflow.com/questions/3100088/upload-large-files-in-silverlight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!