Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

NPOI.POIFS.FileSystem.NotOLE2FileException #27

Closed
paul-plaza opened this issue Sep 12, 2017 · 1 comment
Closed

NPOI.POIFS.FileSystem.NotOLE2FileException #27

paul-plaza opened this issue Sep 12, 2017 · 1 comment
Labels

Comments

@paul-plaza
Copy link

Good day can help me with the following error that is generated when uploading an excel file and trying to read it. in asp.net core 2.0

Where stream is of type IFormFile file ( file.OpenReadStream())

1. ---line where the error occurs--------
  var workbook = new HSSFWorkbook (stream);

2. ---line where the error occurs--------
var workbook = new XSSFWorkbook(stream);

-------------Version NPOI--------------

---------Error------------
NPOI.POIFS.FileSystem.NotOLE2FileException: 'Invalid header signature; read 0xE011BDBFEFBDBFEF, expected 0xE11AB1A1E011CFD0 - Your file appears not to be a valid OLE2 document'

@yang-xiaodong
Copy link
Member

@paulPlaza I can't reproduce you error . Can provide more detailed information, such as your environment, code, documents

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants