ASP.NET Web API file download service with resume support

added by pwalat
10/18/2012 8:33:28 AM


SP.NET Web API provides out of the box support for streaming binary files to the client. However for more advanced scenarios you need to add custom logic to handle pause/resume functionality by handling appropriate HTTP Headers. In this post I will try to address this problem and build a resume-supporting file download service using two different approaches: stream wrapper and memory mapped files.