以下是我编写的部分代码:
S3Object obj1 = null; obj1 = s3client.getObject("bucketname", "file.yml");
S3ObjectInputStream instream = obj1.getObjectContent ();
将代码部署到 openfaas 时出现以下错误:
错误:不兼容的类型:InputStream 无法转换为 S3ObjectInputStream S3ObjectInputStream instream = obj1.getObjectContent ();