如何在读取word文档时,将byte[]转换成string类型

如题所述

具体做法:将byte数组转换成string BASE64Encoder enc=new BASE64Encoder(); String 转换后的string=enc.encode(byte数组);将string转换回来成为byte数组: BASE64Decoder dec=new BASE64Decoder(); try { byte数组 = dec.decodeBuffer(转换后的string); } catch (IOException e1)TODO Auto-generated catch block e1.printStackTrace(); }
温馨提示:答案为网友推荐,仅供参考
相似回答