Solved

Vb6 code for Amazon S3 Simple Storage Solution

Posted on 2011-03-22
5
1,537 Views
Last Modified: 2012-06-27
Looking for working Vb6 code to access Amazon S3 Simple Storage Solution via HTTP.
I have a AccessKey and SecretKey that I have been using with JungleDisk for several years.
I have tried sample code at http://blog.gobansaor.com/2008/02/22/xlaws-excel-vba-code-for-accessing-amazons-s3-and-simpledb/ but it is not working (Error - "The request signature we calculated does not match the signature you provided. Check your key and signing method.").

Class for HMAC_SHA256 was found here. Added method for HMAC_SHA1 which was confirmed OK via online HMAC_SHA1 generators.
http://www.vbforums.com/showthread.php?t=635398

The problem is putting all the pieces together correctly for the request. HMAC_SHA1, Base64, MD5, etc.
Currently trying with CreateObject("MSXML2.XMLHTTP") Open/Send

Looking for any of the following:
1. GetService - Retrieve bucket names.
2. GET file info
3. Download file.
4. Upload file.
5. How is versioning handled.
0
Comment
Question by:danaseaman
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:coolcurrent4u
ID: 35230998
does amazon have api for that, it should be the first place you should look. you can post the code you used and the api here so that have a look at the problem
0
 
LVL 22

Author Comment

by:danaseaman
ID: 35231087
Already looked there. Amazon has SDK and API for Java, .Net, and other languages but nothing for Vb6. Looked at cSocketMaster for communicating with server but I don't think it is 100% reliable. Looks like it is going to be a chore to put this all together.
0
 
LVL 4

Expert Comment

by:coolcurrent4u
ID: 35232722
also note that its a paid service, and as such if you develop for it without something like an api key, you program might not work as expected
0
 
LVL 4

Accepted Solution

by:
coolcurrent4u earned 500 total points
ID: 35233044
0
 
LVL 22

Author Comment

by:danaseaman
ID: 35233583
As mentioned in first post I have the keys for Amazon S3 since I have been using the service for several years via JungleDisk client.
It is a paid service but it's very cheap and I think new users get 5Gb free.
See http://aws.amazon.com/s3/#pricing

Thanks for those links. I was already able to connect using legacy Hmac_Sha1 crypto. Now I'm off to implementing the more secure Hmac_Sha256.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
mapShare challenge 13 69
topping2 challenge 13 62
Microsoft Access combo box help 2 30
Basic Java Case or If-Else statement... 3 13
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

746 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

10 Experts available now in Live!

Get 1:1 Help Now