While working with the Apache POI Implementation I ran into a strange behaviour. I cannot explain the cause, so if anybody can give some hints, I would love to hear them. It is not even a big blocker for the problem that I was solving – at this point it is more a curiosity thing. So here it goes: As
Tag: xlsx
‘ZipException: invalid code lengths set’ when streaming input file to Apache-POI
I’m attempting to create an xlsx workbook object with Apache-POI by passing my .xlsx as a resource stream: I can successfully instantiate the workbook when passing my template.xlsx through a FileInputStream and a local file path, but when I pass the resources stream I get an exception: The .xlsx I’m passing shouldn’t be zipped, but maybe that’s how it works