code: public static LifecycleChaincodePackage fromStream(InputStream inputStream) throws IOException, InvalidArgumentException {
          if (null == inputStream) {
              throw new InvalidArgumentException("The parameter inputStream may not be null.");
          }
          byte[] packageBytes = IOUtils.toByteArray(inputStream);
          return fromBytes(packageBytes);
      }
docs: Construct a LifecycleChaincodePackage from a stream.
  
  @param inputStream The stream containing the lifecycle chaincode package. This stream is NOT closed.
  @throws IOException