5.2 Transferring Data using Bayun's SecureTransferUtility
Now in order to use Bayun’s S3Wrapper instead of the standard AWS S3 SDK classes, these code snippets above change to using “Secure” versions of the corresponding classes, as below:
As you can see from the code snippets below, in general it should be possible to simply query-replace the following type-names appropriately to their secure versions, and in most situations that should be sufficient.
AmazonS3Client --> SecureAmazonS3Client
TransferUtility --> SecureTransferUtility
Add the following to the import statements:
5.2.1 Initialize the SecureTransferUtility
5.2.2 Upload a File to Amazon S3 using SecureTransferUtility
5.2.3 Download a File from Amazon S3 using SecureTransferUtility
5.2.4 Tracking S3 Transfer Progress using TransferObserver
Last updated
Was this helpful?