NPOI
NPOI copied to clipboard
Use Memeory stream to read word file
I know how to read a file on disk with:
using (FileStream file = new FileStream(
etc..
Is there a way to do the same from Memory stream or the Byte[] that I get from HTTP?
For example:
public static ISheet GetSheet_2003(string nameSheet, MemoryStream stream) { try { var excel = new HSSFWorkbook(stream); stream.Close(); return excel.GetSheet(nameSheet); } catch (Exception ex) { throw; } }