POI Error: Package should contain a content type part [M1.13]
// Not compatible with xls and xlsx
Workbook workbook = new XSSFWorkbook(multipartFile.getInputStream());
Change to this:
Workbook workbook = WorkbookFactory.create(multipartFile.getInputStream());
Done!
Read More:
- [Solved] Java POI export error: Invalid row number (65536) outside allowable range
- [Solved] POI Read excel Error: Your InputStream was neither an OLE2 stream, nor an OOXML stream
- Ali easyexcel error: org.apache.poi.ss.usermodel.font.setbold (z) V
- [Solved] Java POI Operate Excel error NullPointException
- Linux: How to Solve jdk11+easy poi Export Excel Error
- C# Bug Fixed InvalidCastException: Cannot cast from source type to destination type.
- [Solved] WebFlux Error: DataBufferLimitException: Part headers exceeded the memory usage limit of 8192 bytes
- DevTools failed to load SourceMap Could not load content [Solved]
- Hive operation TMP file viewing content error [How to Solve]
- [Solved] Failed to convert value of type ‘java.lang.String‘ to required type ‘java.util.Date‘;
- [Javac compilation exception] javac compilation prompts that the package in jdk cannot be found error: package jdk.internal.org.objectweb.asm does not exist and error: cannot find symbol
- [Fixed] Disgusting bug Error:Failed to Load project configuration: cannot parse filemessage: content is not allowed in the preface.
- Springboot Project: How to Introduces Local Jar Package
- OpenFeignClient Use Object to Receive text/plain Type Return Error
- Java error: unable to find or load main class (package name in source file)
- [Solved] Springboot Package jar and Startup Error: It was loaded from the following location
- How to Solve Assert error (IDEA Package Imported)
- [Solved] spring source code compile error: target package does not exist
- Explicit and implicit conversion of Java data type
- Defining a bean of type ‘org.springframework.data.redis.core.RedisTemplate‘ in your configuration.