January 3, 2012

Amazon S3 Clients for Delphi XE2

I've written articles and published source code for native Amazon S3 clients written in Delphi XE2, both VCL and FireMonkey.

I've written new articles on Amazon S3 (Simple Storage Service) from Delphi for the latest issues of Blaise Pascal Magazine (http://www.blaisepascal.eu/). That's specifically issue 19 and 20.

The source code of the two projects has been added to my Delphi REST Clients repository (http://code.marcocantu.com/p/delphirestclients/), specifically at:

I'm still trying to figure out why the Amazon S3 components seem to crash on the Mac, as this would be a nice project to move over.

 

Going to publish quite a bit of FireMonkey code this month, will create a specific code project... this is just a start.





 

8 Comments

Amazon S3 Clients for Delphi XE2 

Hi,

I did compile without problem your version.
I have the list of buckets running.

when dble clikcing on a bucket, I have the error
'Forbiden http/1.1 403'.
Reading the doc, it seems I didn't put the right acl
on the buckets.

but checking again and again, I don't see the problem.

Runing s3Fox is fine. I can list the bucket content.

In the code, gtting the bucket list, I did try to use
the URL path, with a simple get /' command. as
proposed in the Amazon doc.
but not helping.

I tried to read the response more in detail, but I
don't succeed to put a debug mode.

Thank you for your help  (and for your code)
I tried the 3 versions, s3, s3 for xe2, and for
firemonkey.
same behavior


best

Salomon
 
Comment by Salomon on March 10, 19:46

Amazon S3 Clients for Delphi XE2 

following my last post.
seems related to Uppercase.
when using bucket names with lowercase, seems OK.

I will check if I can find if there is any conversion
in the process.

best
 
Comment by Salomon on March 10, 20:28

Amazon S3 Clients for Delphi XE2 

Problem closed, by URLencoding the string before
sending them to s3 site.
 
best
Comment by Salomon on March 11, 13:42

Amazon S3 Clients for Delphi XE2 

I am having the same problem, but I am not able to 
resolve this with URLEncode. Can you show the code 
snippet of what you changed? 
Comment by Herman van der Hoek on September 4, 12:23

Amazon S3 Clients for Delphi XE2 

Solved the problem: Although it is possible to create 
buckets with a mix of upper and lowercase characters, 
doubleclicking the bucket, trying to delete the bucket 
or adding something to the bucket won't work.
When the bucketname is in lowercase, everything is 
fine...
Comment by Herman van der Hoek on September 5, 12:43

Amazon S3 Clients for Delphi XE2 help 

Hi Marco,

I have a newbie question related to Amazon S3. I ran 
the Cloud Explorer example in XE2 but cannot connect 
to my S3 account using a variety of Account Name or 
Account Key parameters.

Most of the time I get an exception from Amazon:

"HTTP/1.1 403 Forbidden - The AWS Access Key Id you 
provided does not exist in our records. 
(InvalidAccessKeyId)"

when I use the Access Key Id that is registered at 
Amazon and is displayed as Active on the IAM 
Management Console.


For the Account Name I tried, without success:
- the name on my account as listed under the "Change 
Name, E-mail Address, Password" page of the AWS 
console.
- my e-mail to access my amazon account
- my 12-digit AWS Account ID

Do I have to enter anything special in the "Display 
name" input box of Cloud Explorer?

I must be doing something quite wrong. Could you help?

Thanks in advance.
Comment by Victor on September 29, 17:40

Amazon S3 Clients for Delphi XE2 

Hi Marco,

Solved my problem with CloudExplorer. A bit of RTFM 
on SourceForge helped...

Comment by Victor on September 30, 17:00

Amazon S3 Clients for Delphi XE2 

Hi Marco, 

The link no longer works. 

http://code.marcocantu.com/p/delphirestclients/source/tree/HEAD/Am
azonS3_XE2

Could you please help me. 

Best Regards 
Comment by Masr on February 12, 05:58


Post Your Comment

Click here for posting your feedback to this blog.

There are currently 0 pending (unapproved) messages.