Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Sample vb.net code to upload file to Amazon S3 storage

Posted on 2014-01-16
3
Medium Priority
?
434 Views
Last Modified: 2016-06-13
Hi Experts,

I am looking for sample vb.net 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.

Regards,
Leigh
0
Comment
Question by:LeighWardle
3 Comments
 
LVL 10

Accepted Solution

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

Try
        Dim fileTransferUtility As New TransferUtility(client)
        Dim request As TransferUtilityUploadRequest = New TransferUtilityUploadRequest
        With request
            .BucketName = "mybucketname"
            .WithFilePath("C:\Users\mitesh\Desktop\s3.txt")
            .WithTimeout(FIVE_MINUTES)
        End With
        fileTransferUtility.Upload(request)

    Catch ex As Exception

    Finally

    End Try
0
 
LVL 1

Author Comment

by:LeighWardle
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?
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

As managed cloud service providers, we often get asked to intervene when cloud deployments go awry. Attracted by apparent ease-of-use, flexibility and low computing costs, companies quickly adopt leading public cloud platforms such as Amazon Web Ser…
Considering cloud tradeoffs and determining the right mix for your organization.
This Micro Tutorial will explain how to export DynamoDB tables in Amazon Web Services.
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…
Suggested Courses

916 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