public static byte[][] convert(final MultipartFile... files) throws IOException {
  if (files != null) {
    final List<Resource> resources=new ArrayList<Resource>(files.length);
    for (    final MultipartFile file : files) {
      resources.add(new MultipartFileResourceAdapter(file));
    }
    return convert(resources.toArray(new Resource[resources.size()]));
  }
  return new byte[0][];
}

public static byte [ ] [ ] convert ( final MultipartFile ... files ) throws IOException { if ( files != null ) { final List < Resource > resources = new ArrayList < Resource > ( files . length ) ; for ( final MultipartFile file : files ) { resources . add ( new MultipartFileResourceAdapter ( file ) ) ; } return convert ( resources . toArray ( new Resource [ resources . size ( ) ] ) ) ; } return new byte [ 0 ] [ ] ; }
converts the array of multipartfiles into a 2 - dimensional byte array containing content from each multipartfile . the 2 - dimensional byte array format is used by gfsh and the gemfire manager to transmit file data . < p / >
