0
Answer

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

Photo of walid mousbah

walid mousbah

9y
821
1
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