Storing an ActionResult into a byte[] (C# & MVC)WMwalid mousbah11yAsked Jun 21, 2015, 9:00 AM EDTUnansweredShareLinkedInXCopy linkSaveHi,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[] DataThanksAnswersKnow the answer? Post it. Somebody with the same question will find it here.Join to answer this questionEvery answer you publish earns 20 SHARP.Create free accountSign in
Storing an ActionResult into a byte[] (C# & MVC)WMwalid mousbah11yAsked Jun 21, 2015, 9:00 AM EDTUnansweredShareLinkedInXCopy linkSaveHi,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[] DataThanks
Answers
Know the answer? Post it. Somebody with the same question will find it here.