Sample code for 30+ languages & platforms
AutoIt

Example: Http.S3_DownloadBd method

See more Amazon S3 Examples

Demonstrates the S3_DownloadBd method.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

; This requires the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.

$oHttp = ObjCreate("Chilkat.Http")

$oHttp.AwsAccessKey = "AWS_ACCESS_KEY"
$oHttp.AwsSecretKey = "AWS_SECRET_KEY"
$oHttp.AwsRegion = "us-west-2"
$oHttp.AwsEndpoint = "s3-us-west-2.amazonaws.com"

Local $sBucketName = "chilkat.qa"
Local $sObjectName = "/images/sea_creatures/starfish.jpg"
Local $sLocalFilePath = "qa_output/starfish.jpg"

$oBd = ObjCreate("Chilkat.BinData")
$bSuccess = $oHttp.S3_DownloadBd($sBucketName,$sObjectName,$oBd)
If ($bSuccess = False) Then
    ConsoleWrite($oHttp.LastErrorText & @CRLF)
    Exit
EndIf

ConsoleWrite("Downloaded " & $oBd.NumBytes & " bytes" & @CRLF)