I need to basically import .xlsx file using NPOI in c#. Following is the code that I have written.
XSSFWorkbook xssfwb;
using (FileStream file = new FileStream(excelPath, FileMode.Open, FileAccess.Read))
{
xssfwb = new XSSFWorkbook(file);
}
I am getting SystemOutOfMemory exception at the line of code xssfwb = new XSSFWorkbook(file); Can ane tell the reason why this is happening ?