walid mousbah

walid mousbah

  • NA
  • 10
  • 12k

storing an ActionResult into a byte[] (C# & MVC)

Jun 21 2015 1:00 PM
Hi,
I have this method:
public ActionResult GetPdf(string filename)
with this return statment:
return File(data, "application/pdf");
How can I store the result coming back from the above method into this array:
byte[] Data
Thanks