0

I have several questions:

  1. Can I use web api for file download? How? Sample?
  2. How do I test that webapi call is working?
  3. How do I call that api from after clicking a link? I don't want to open up a new page only for download.
Markus
  • 20,838
  • 4
  • 31
  • 55
Musfiqur rahman
  • 749
  • 4
  • 12
  • 2
    have you looked at other answers on this site? Like this one http://stackoverflow.com/a/9549889/333082 – cecilphillip Feb 19 '14 at 20:45
  • It seems like that it does not work. I am putting the address in browser and it is throwing a 500 exception. How do I test if it is working? – Musfiqur rahman Feb 19 '14 at 20:53
  • I'd try to figure the details of the exception first and see if you can resolve that – cecilphillip Feb 19 '14 at 21:43
  • possible duplicate of [Returning binary file from controller in ASP.NET Web API](http://stackoverflow.com/questions/9541351/returning-binary-file-from-controller-in-asp-net-web-api) – Rafael Emshoff Aug 17 '15 at 12:33

0 Answers0