Here Mudassar Ahmed Khan has explained with an example, how to read and import Excel file directly from Stream without saving in Folder (Directory) on Server’s Disk in ASP.Net using C# and VB.Net.
When the Excel file is uploaded, the Excel File data is available in the InputStream property of the FileUpload control.
Using ClosedXml, the Excel file data can be easily read from the InputStream property.
↧