public byte[] getData() throws IOException {
    if (size == -1) {
      throw new IOException("no data");
    }

    try (InputStream stream = getInputStream()) {
      return FileUtil.loadBytes(stream, (int)size);
    }
  }
public byte[] getData()