Outbound Adapter for Cloud Storage
A business operation in an interoperability production can use the outbound adapter to delete a blob from cloud storage or upload a new blob. Like all business operations, the business operation performs these actions by calling one of the adapter's methods. For information about the properties of the adapter that allow it to connect to the cloud storage provider, see More About Adapters.
The classname of the outbound adapter is EnsLib.CloudStorage.OutboundAdapterOpens in a new tab.
Deleting Blobs
A business operation deletes an blob from cloud storage by calling the DeleteBlobOpens in a new tab method of the outbound adapter. For example, the business operation could call:
Set tSC = ..Adapter.DeleteBlob(..BucketName, request.BlobName)
In this example, the business operation uses a property to identify the cloud storage bucket and the production uses a request message to provide the name of the blob being deleted.
Uploading Blobs
The outbound adapter provides three different methods for uploading blobs, depending on the source or data type of the data:
The first two parameters of each method specify the bucket name and blob name. The third parameter of each method is used to receive the data or location of the data from the business operation. For example, a business operation that receives a message containing data as a stream could call:
Set tSC = ..Adapter.UploadBlobFromStream(..BucketName,
request.BlobName, request.Content)