Sample code to upload file to Amazon S3 storage

Posted on 2014-01-16
Last Modified: 2016-06-13
Hi Experts,

I am looking for sample code to upload a file to Amazon S3 storage.

I am happy to use any official Amazon API, but do not want to use a 3rd party product.

Question by:LeighWardle
LVL 10

Accepted Solution

Monica P earned 500 total points
ID: 39793705
Do you mean this type of code ?

        Dim fileTransferUtility As New TransferUtility(client)
        Dim request As TransferUtilityUploadRequest = New TransferUtilityUploadRequest
        With request
            .BucketName = "mybucketname"
        End With

    Catch ex As Exception


    End Try

Author Comment

ID: 39793988
Thanks, Akila P, that looks like the type of code I am looking for.

What references do I need?

Also where do I specify access key id and secret  access key?

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Code works but it's slow 28 70
C# Gridview 1 28
VB.NET 2008 - SQL Timeout 9 23
Get distinct values from excel or comm seperated file 4 23
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
Both in life and business – not all partnerships are created equal. Spend 30 short minutes with us to learn:   • Key questions to ask when considering a partnership to accelerate your business into the cloud • Pitfalls and mistakes other partners…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question