Best practices on how to stream data to server .NET
Say I want to have a server that can accept 2GB file over network, HTTP. And the data is easily readable with well known format, think something like CSV.
Is there a way to gradually process the data the user has uploaded into file upload "INPUT = FILE" control while the data is still uploading through 32kbps modem?
I'm reading HttpRequest Stream, and other streaming documentation, but haven't found a c开发者_开发技巧onfirmation if IIS, ASP.NET even allows it and if I'm just not wasting my time.
And, from development perspective, is it possible to simulate slow stream?
Use WCF Streaming that you can use netTcpBinding
or basicHttpBinding
. I have used it and It is super fast and efficient - really impressive.
And yes you can simulate slow transfer, you just need to write to your stream slowly (pauses in the middle).
精彩评论