Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The supplied data appears to be in the OLE2 Format #239

Open
JayneshAhir opened this issue Jul 7, 2021 · 2 comments
Open

The supplied data appears to be in the OLE2 Format #239

JayneshAhir opened this issue Jul 7, 2021 · 2 comments

Comments

@JayneshAhir
Copy link

Getting below exception message while reading protected xlsx file. Is there a way to read protected file using StreamingReader.builder().rowCacheSize(6).open(is);

Exception: The supplied data appears to be in the OLE2 Format. You are calling the part of POI that deals with OOXML (Office Open XML) Documents. You need to call a different part of POI to process this data (eg HSSF instead of XSSF)

@pjfanning
Copy link
Contributor

Try StreamingReader.builder().setPassword(password).open(is)

@JayneshAhir
Copy link
Author

@pjfanning is it possible to read files which have protection like this? it's not a password protected but restricted by privacy policy.
image

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

No branches or pull requests

2 participants