I tried to look on the bin folder where the PEs are generated, but it is not saved there, I’m using ASP.NEt webforms
string tempExcelFilePath = "tempExcel.xls";
FileStream fs = new FileStream(tempExcelFilePath, FileMode.Create, FileAccess.ReadWrite);
BinaryWriter bw = new BinaryWriter(fs);
bw.Write(fileBytes);//fileBytes is an array of bytes= byte[]
bw.Close();
The full path of the file is stored at
fs.Namein your code.