1

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?

Roger Johansson
  • 22,764
  • 18
  • 97
  • 193

2 Answers2

4

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.

Denis
  • 4,115
  • 1
  • 18
  • 20
  • This isn't a valid answer as SilverLight is not allowed to set the `Transfer-Encoding` header in the WebRequest - [it is set by the browser](https://developer.yahoo.com/dotnet/silverlight/2.0/requestheaders.html). – SliverNinja - MSFT Jan 23 '15 at 16:32
0

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

Rahul
  • 400
  • 1
  • 3
  • 15