如何将s3Object作为文件

时间:2018-02-19 15:02:01

标签: java amazon-s3 aws-lambda

AmazonS3 s3Client = new AmazonS3Client();
S3Object s3Object = s3Client.getObject(new GetObjectRequest(
                "**", "**"));
InputStream objectData = (InputStream) s3Object.getObjectContent();

是否有正确的方法将此s3Object作为文件(例如:txt,xmls,docx)

0 个答案:

没有答案