Download full source code
At first you think it’s going to be easy to download a file from Web Api, but as I discovered, it was not.
In my case I wanted to load data from the database, perform some processing and return a subset of the data as a file.