Convert byteArray to XSSFWorkbook using Apache POI

三世轮回 提交于 2019-12-06 04:54:34

You cannot simply send the byte-array as ISO-8859-1 encoded text the way you attempt.

There will be special characters that might get replaced/truncated/modified.

Currently you mix binary data and a text-only channel (HTTP). You will need to do it differently, either use a binary data transfer and not convert it to String or use some binary-to-text representation, see e.g. https://en.wikipedia.org/wiki/Binary-to-text_encoding, the most common one being Base64

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!