//将流(inputs)转成字节数组
            ByteArrayOutputStream outStream = new ByteArrayOutputStream();
            byte[] buff = new byte[100]; //buff用于存放循环读取的临时数据
            int rc = 0;
            while ((rc = inputIs.read(buff, 0, 100)) > 0) {
                outStream.write(buff, 0, rc);
            }
            //合并之后的字节数组
            byte[] in_merge = outStream.toByteArray();

  

相关文章:

  • 2022-12-23
  • 2021-10-15
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2021-04-18
  • 2021-09-20
  • 2022-12-23
相关资源
相似解决方案