作者:时光机少女 | 来源:互联网 | 2023-08-01 15:44
IhavemyimagefromRequest.Files[0].Now,howdoIuploadthisimagetoS3?IseethatintheAWS
I have my image from Request.Files[0]. Now, how do I upload this image to S3? I see that in the AWS .NET API you have to specify ContentBody when putting an object which is a string. How would I get the content body of my file?
我的图像来自请求。文件[0]。现在,我如何将这个图像上传到S3?我在AWS。net API中看到,当放置一个字符串对象时,必须指定ContentBody。如何获得文件的内容主体?
4 个解决方案