I want to send a large amount of cached json data from an import process to an MVC controller which will in turn respond with a text file in CSV format.
The problem is if I use an AJAX call, there is no way for the browser to handle the response and download the file.
If I use a regular form post, then the browser would handle the returned file response. However, AFAIK to post a form I can't send Json data and I don't want to send the data on the query string.
Seems like I'm between a rock and a hard place. What are my best options for achieving this? I want to avoid writing data files to the server. Basically I just want to send lots of json data and return as a download request to the browser.