ByteArrayOutputStream baos=new ByteArrayOutputStream();

cipher cipher=xxx;

CipherOutputStream ount=new CipherOutputStream(

out.write(bytedata,0,bytedata.length)

必须要out.close(),

才能用baos.tostring()

如果不关闭就tostring会有部分读取不出来

相关文章:

  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
  • 2022-02-17
  • 2021-12-12
  • 2021-10-09
  • 2022-02-08
  • 2022-03-05
猜你喜欢
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2021-12-30
  • 2021-06-18
  • 2022-02-22
  • 2022-01-28
相关资源
相似解决方案