How to do it...

  1. We will just create a console application that will upload the picture to the S3 bucket we created earlier. Start off by opening the NuGet Package Manager and adding the AWSSDK NuGet package to your Console Application.
It might be worth your while to have a look at the AWS SDK for .NET at the following link https://aws.amazon.com/sdk-for-net/. This helps developers get up to speed quickly with the SDK.
  1. Next, create a class called StampysLovelyWorld and a method called SaveStampy(). There is really nothing complicated about the code. Create a client object that specifies the region of your bucket, create the TransferUtilityUploadRequest object that specifies the file to upload, the bucket name and directory and, lastly, ...

Get C# 7 and .NET Core Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.