I am uploading the file by using file upload option. And i am directly send this file from View to Controller in POST method like,
[HttpPost]
public ActionResult Page2(FormCollection objCollection)
{
HttpPostedFileBase file = Request.Files[0];
}
Assume, i am uploading a notepad file. How do i read this file & append this text to string builder,, without save that file....
I'm aware about after SaveAs
this file, we can read this file. But How do i read this file from HttpPostedFileBase
without save?