How to get file path using FileUpload to be read by FileStream?
- by john ryan
I have a Method that open excel file and read it through exceldatareaderClass that i have downloaded in codeplex by using filestream.
Currently I just declared the exact directory where the filestream open an excel file.And it works fine.
Stream stream = new FileStream("C:\\" + FileUpload.PostedFile.FileName, FileMode.Open, FileAccess.Read,…