我遇到这个异常时,是在处理excel时,根据字节数组流创建HSSFWorkbook对象时报的错,这个是excel兼容性的问题。
处理xls结尾的文件时,用HSSFWorkbook及其相关类型;而处理xlsx结尾的文件时,需要用XSSFWorkbook及其相关类。两种类型其实方法都差不多,但在使用的时候,还是需要注意的。

异常:The supplied data appears to be in the Office 2007+ XML相关推荐

  1. 【spring boot】【POI】错误:The supplied data appears to be in the Office 2007+ XML

    前言 spring boot 2.1.1.RELEASE poi 5.0.0 错误 Caused by: org.apache.poi.poifs.filesystem.OfficeXmlFileEx ...

  2. The supplied data appears to be in the Office 2007+ XML问题解决

    碰到了一个因为导入一个Excel文件的问题 The supplied data appears to be in the Office 2007+ XML 错误描述 org.apache.poi.po ...

  3. The supplied data appears to be in the Office 2007+ XML

    错误原文 The supplied data appears to be in the Office 2007+ XML. You are calling the part of POI that d ...

  4. 导入excel时报错The supplied data appears to be in the Office 2007+ XML.

    bug1: HSSFWorkbook:是操作Excel2003以前(包括2003)的版本,扩展名是.xls XSSFWorkbook:是操作Excel2007的版本,扩展名是.xlsx 另存文件改后缀 ...

  5. The supplied data appears to be in the Office 2007+ XML. You are calling the

    如果是xls,使用HSSFWorkbook:如果是xlsx,使用XSSFWorkbook

  6. 使用poi导入Excel文件兼容性问题,The supplied data appears to be in the OLE2 Format.

    今天在处理Excel文件时候,发现对于以xls和xlsx为后缀的文件,用以下的代码处理时候抛 The supplied data appears to be in the OLE2 Format.异常 ...

  7. The supplied data appears to be in the OLE2 Format. You are calling the part of POI that deals with

    The supplied data appears to be in the OLE2 Format. You are calling the part of POI that deals with  ...

  8. The supplied data appears to be in the OLE2 Format.

    The supplied data appears to be in the OLE2 Format. You are calling the part of POI that deals with  ...

  9. “System.AccessViolationException”类型的未经处理的异常在 System.Data.dll 中发生

    "System.AccessViolationException"类型的未经处理的异常在 System.Data.dll 中发生 参考文章: (1)"System.Acc ...

最新文章

  1. 梳理MVC 架构 MVVM架构
  2. Linux Shell 命令--tr
  3. 【PAT乙级】1077 互评成绩计算 (20 分)
  4. 5.Spring Cloud Alibaba教程:Nacos整合Feign
  5. assign, retain, copy, weak, strong
  6. python实现归并排序
  7. Datagridview绘制
  8. opencv for andriod java代码实现霍夫变化(HoughLinesP)
  9. TCP/IP参考模型入门
  10. SpringMVC源码解析 - HandlerAdapter - @SessionAttributes注解处理
  11. cass有坐标文件生成里程文件_【视频】南方cass9.0进阶教程74.3生成里程文件3
  12. Install Tcpping on Linux
  13. 多因子量化投资模型策略深度研究
  14. VMware、vSphere 6.0 网络和存储配置
  15. 矩阵分析与应用 -- 线性方程组
  16. Ffmpeg 微信amr转换Mp3
  17. YARN——NM重启后的任务恢复
  18. ZBrush中的法线贴图你知道吗?
  19. python爬虫脚本 初级入门爬虫英雄联盟所有皮肤_用Python爬取英雄联盟(lol)全部皮肤...
  20. 机械专业转嵌入式软件经历

热门文章

  1. 未经授权的ADB Android设备
  2. 何时及为何使用代表? [重复]
  3. 如何在单元格和循环中使用Microsoft Excel中的正则表达式(Regex)
  4. Servlet3.0
  5. Android:获取存储卡路径的方式
  6. MTK模拟器编译使用
  7. 机器人环境感知研究现状简述
  8. Class类的创建方式大全
  9. es 仅返回单个字段 查询_ES性能优化实战,几十亿数据查询 3 秒返回!
  10. java邮箱正则表达式_Java正则表达式详解