Unable to read entire header; 336 bytes read; expected 512 bytes
2016-06-16 13:10
393 查看
产生这个的原因是我这里重复调用了InputStream,
POIFSFileSystem fs = new POIFSFileSystem(multipartFile.getInputStream());
InputStreamReader read = new InputStreamReader( multipartFile.getInputStream(),encoding);//考虑到编码格式
是不是输入流不能重复利用,同时读取的话,导致内存不足。没有查到很详细的解释。我现在是直接去掉第一个,之前用的没有删,这次偶然发现这个问题,同时调用 阅读更多相关文章推荐
- 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 的解决方法
- java.io.IOException: Unable to read entire header; 0 bytes read; expected 32 bytes
- Unable to read entire header; bytes read; expected bytes
- Unity Unable to read header archive file
- ERROR:unable to read the cmd header on the pmi context, Error = -1
- Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unex
- Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection w
- SB的方法对付SB的java API,处理excel,word经常出现类似于: IOException:Unable to read entire block;
- Can not read response from server. Expected to read 4 bytes, read 0 bytes
- web服务连接mysql报错 解析:Can not read response from server. Expected to read 4 bytes, read 0 bytes before c
- Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
- tomcat链接mysql时超时报错java.io.EOFException: Can not read response from server. Expected to read 4 bytes,
- mysql Can not read response from server. Expected to read 4 bytes 异常
- php - Fatal error: Unable to read X bytes in file.php on line 0
- tomcat链接mysql时超时报错java.io.EOFException: Can not read response from server. Expected to read 4 bytes,
- jeecms运行出现 Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.解决
- 使用Hibernate操作,出现org.hibernate.InvalidMappingException: Unable to read XML
- 安卓ADB Unable to chmod ***: Read-only file system问题的解决方法
- 安装tcpreplay出现checking for libpcap... configure: error: Unable to find matching library for header fi