code: public static String arraysToBase64(INDArray[] arrays) throws IOException {
          StringBuilder sb = new StringBuilder();
          //tab separate the outputs for de serialization
          for (INDArray outputArr : arrays) {
              ByteArrayOutputStream bos = new ByteArrayOutputStream();
              DataOutputStream dos = new DataOutputStream(bos);
              Nd4j.write(outputArr, dos);
              String base64 = Base64.encodeBase64String(bos.toByteArray());
              sb.append(base64);
              sb.append("\t");
          }
  
          return sb.toString();
      }
docs: Returns a tab delimited base 64
  representation of the given arrays
  @param arrays the arrays
  @return
  @throws IOException