Unable to read entire header; bytes read; expected bytes
来源:互联网 发布:淘宝上的祛痘产品知乎 编辑:程序博客网 时间:2024/05/16 00:48
今天出现了上面的错误,他的意思大概是读取word的文件时读取不到后面大小的word文件,也就是文件大小不够,后来我去打开下文件,文件大小应该够啊,怎么会说不够呢,后来断点一看,流竟然是-1,也就是没有读到流,怎么回事,后来直接用项目中的地址打开下word文档,竟然打不开后来一看电脑上别的word文档,后缀名写错了,修改后缀名就可以了,真是粗心了,以后出现这样的错误,可以先断点看一下独到了多少流,是不是字节数真的不够,如果是-1,就代表完全没有独到文件,如果不是报找不到此文件,那可能就是你这个地址直接输入打不开此文件,很大的可能是后缀写错了,也可能是你没有权限读取此文件(后面只是猜测)。
0 0
- Unable to read entire header; bytes read; expected bytes
- java.io.IOException: Unable to read entire header; 0 bytes read; expected 32 bytes
- Unable to read entire header; 336 bytes read; expected 512 bytes
- java 利用POI读取execel文件时出现 Unable to read entire header; 0 bytes read; expected 512 bytes 的解决方法
- Can not read response from server. Expected to read 4 bytes, read 0 bytes
- read(bytes)
- Fatal error: Unable to read 1403 bytes in 报错
- mysql Can not read response from server. Expected to read 4 bytes 异常
- web服务连接mysql报错 解析:Can not read response from server. Expected to read 4 bytes, read 0 bytes before c
- java 读取execel文件时出现 Unable to read entire header; ……的解决方法
- php - Fatal error: Unable to read X bytes in file.php on line 0
- HDFS bytes read与Map input bytes
- Read and write bytes data
- tomcat链接mysql时超时报错java.io.EOFException: Can not read response from server. Expected to read 4 bytes,
- java.io.EOFException: while trying to read 65557 bytes
- read GBK code from bytes,string operations
- unable to read libvlcjni
- Unable to read XML
- Notepad++搭配MinGW编译运行C,C++程序
- java静态初始化块学习
- JSP引入资源
- Smells and Heuristics
- sqlserver、mysql、oracle各自的默认端口号
- Unable to read entire header; bytes read; expected bytes
- 问题清单
- Xamarin开发Android之所需工具的安装
- 服务器数据库连接配置
- 计算矩阵边缘元素之和
- linux下持续集成自动部署脚本,自动从jekins拉取war包并重新部署 (我去,一个大坑,if中的变量要双引号引起来,不然始终是true)
- 字符串函数
- JMS--Spring整合JMS(四)——事务管理
- 2016年数学建模美赛题目原文及翻译-A [个人思路]