Tag: buffering

File Buffering and Streaming

FOLLOWING on from my article about Packet Sizes I hope it has given you insight on how smaller packets are much more ideal over larger packets of data. Not only is it safer for your Web server, it also gives you control how much traffic you want your applications to use in your network.

In this article I will provide an example on how to stream data from a Silverlight Client to the Web Server using the Buffered and Steaming approach. A general knowledge of .Net Generic Handlers is ideal because this solution relies heavily on custom handlers to feed data to and from our Web server.


(continue reading…)

MaxRequestLength – Packet sizes: Size isnt everything

IF you have coded a file upload component in .Net before you would have probably used the Asp.Net File Upload control. You would  have also come across the fact that the default HTTP Request size for a Web Application is set to 4MB. A search thereafter would have introduced you to the maxRequestLength Attribute that is configurable in your Web.config.

Increasing this value to say 40,960 will allow 10x the default file size to be posted to your web server. This will fix your immediate file size limitation to 40MB. But what it also means is that you have now opened your Web application to accept any request 10x the standard request length. The question you need to ask yourself is, is this a good thing or is this a bad thing.. ?

In this article I will explain how to go one step further and show how you can implement a buffered and streaming approach to file downloading and uploading…

(continue reading…)

Copyright © Nullable Code. All rights reserved.