Skip to main content


class %Net.Cloud.Storage.Client extends %Library.RegisteredObject

Property Inventory

Method Inventory


property gateway as %External.JavaGateway;
Connection to a Java Gateway
Property methods: gatewayGet(), gatewayGetSwizzled(), gatewayIsValid(), gatewayNewObject(), gatewaySet()
property jclient as %Net.Remote.Object;
Remote Java client object to Azure, Google or S3
Property methods: jclientGet(), jclientGetSwizzled(), jclientIsValid(), jclientNewObject(), jclientSet()


method BlobExists(bucketName As %String, blobName As %String) as %Boolean
Test if a blob exists
method BucketExists(bucketName As %String) as %Boolean
Test if a bucket exists
method Close()
Close storage client and disconnect Java gateway
method CreateBucket(bucketName As %String)
Create a new bucket
classmethod CreateClient(javaServer As %RawString = "", storageProvider As %Integer, credentialsFile As %String, region As %String, Output sc As %Status) as Client
Factory method to create a cloud storage client. javaServer: Java gateway name, default to default Java gateway. storageProvider: Specify storage provider. 0: Amazon S3, 1: Azure Blob, 2: Google Cloud Storage. credentialsFile: File name containing credentials for specific storage provider. region: Cloud storage region for specific storage provider. sc: returning status code.
method DeleteBlob(bucketName As %String, blobName As %String)
Delete a blob from the cloud
method DeleteBucket(bucketName As %String)
Delete a bucket from the cloud
method DownloadBlobToFile(bucketName As %String, blobName As %String, filePath As %String)
Download a blob from the cloud to a file
method DownloadBlobToStream(bucketName As %String, blobName As %String) as %GlobalBinaryStream
Download a blob from the cloud to a stream
method DownloadBlobToString(bucketName As %String, blobName As %String) as %String
Download a blob from the cloud to a string
method GetBlobInfo(bucketName As %String, blobName As %String) as BlobInfo
Get blob info
method GetBucketInfo(bucketName As %String) as BucketInfo
Get bucket info
method ListBlobs(bucketName As %String, blobNamePrefix As %String = "", blobNamePattern As %String = "") as %ListOfObjects
List all blobs within a bucket, filtered by blobNamePrefix and blobNamePattern. bucketName: bucket name blobNamePrefix: blob name prefix, used to filter the result on the server. blobNamePattern: blob name pattern, used to filter the result by the client. Support wild cards "?" and "*".
method ListBuckets() as %ListOfObjects
List all buckets
method UploadBlobFromFile(bucketName As %String, blobName As %String, filePath As %String)
Upload a file blob to the cloud
method UploadBlobFromStream(bucketName As %String, blobName As %String, stream As %GlobalBinaryStream)
Upload a stream blob to the cloud
method UploadBlobFromString(bucketName As %String, blobName As %String, content As %String)
Upload a string blob to the cloud

Inherited Members

Inherited Methods

FeedbackOpens in a new tab