Solved

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

Posted on 2014-01-16
3
226 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 500 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

Shouldn't all users have the same email signature?

You wouldn't let your users design their own business cards, would you? So, why do you let them design their own email signatures? Think of the damage they could be doing to your brand reputation! Choose the easy way to manage set up and add email signatures for all users.

Join & Write a Comment

As a financial services provider, your business is impacted by two of the strictest federal regulations on record: the Sarbanes-Oxley Act and the Gramm-Leach-Bliley Act. Correctly implementing faxing into your organization to provide secure, real-ti…
Monitoring systems evolution, cloud technology benefits and cloud cost calculators business utility.
This Micro Tutorial will explain how to export DynamoDB tables in Amazon Web Services.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now