AWS Lambda Api将图像上传到S3存储桶

时间:2020-03-13 10:37:53

标签: amazon-s3 .net-core aws-lambda

我正在尝试创建一个Dotnet Core 2.1 Api。我需要上传图片。我有以下代码可以上传图片。

Once you’ve set up this file, you can launch or stop your cluster with the following shell scripts, based on Hadoop’s deploy scripts, and available in SPARK_HOME/sbin: [...] Note that these scripts must be executed on the machine you want to run the Spark master on, not your local machine.

使用邮递员,我可以将图像上传到s3存储桶。 enter image description here

但是,当我进入S3存储桶并下载该图像时,该图像看起来已损坏或其他原因,Windows照片无法打开该文件。 enter image description here

我也检查了s3存储桶中的内容类型,它是“ image / jpeg”。我不知道我在做什么错。有人可以帮我吗?

0 个答案:

没有答案