I have some images stored on AWS S3 bucket. I am using ASP.NET SDK. Now I can upload/download/delete files through the SDK. But what I want is to get a link to the image files so that if I want to display an image, I can show its thumbnail on my website. I am unable to find anything in ASP.NET. Is there a way to do it?
Asked
Active
Viewed 319 times
0
-
Refer to this link https://docs.aws.amazon.com/AmazonS3/latest/dev/RetrievingObjectUsingNetSDK.html – charmi zala Jun 09 '20 at 10:03
-
Kindly read my question again. I know how to download/upload/delete files. I am interested in generating a link for every file. – Junaid Jun 09 '20 at 12:23
-
You can work it out for yourself given the bucket and the file name you specify in the upload request. e.g. if your bucket is mybucket and your file is named myfilename: https://mybucket.s3.amazonaws.com/myfilename The s3 bit will be different depending on which region your bucket is in. For example, I use the south-east asia region so my urls are like: https://mybucket.s3-ap-southeast-1.amazonaws.com/myfilename – charmi zala Jun 10 '20 at 11:12