azure.storage.read
- :
data =azure.storage.read(container, blob)¶ - :
data =azure.storage.read(container, blob, …)¶ Read the contents of an Azure Blob Storage blob.
azure.storage.read (container, blob)reads the blob identified by container and blob from Azure Blob Storage and returns its raw content as auint8column vector.The connection is authenticated via Azure Shared Key. Credentials can be supplied as name-value pairs or taken from environment variables:
"AccountName", nameand"AccountKey", key— the storage account name (lowercase letters and digits) and the 64-byte base64-encoded account key."SAS", token— a Shared Access Signature query token. When provided the SAS token is appended directly to every request;AccountKeyis not used.
If neither credentials nor a SAS token are supplied explicitly, the function reads
AZURE_STORAGE_ACCOUNTandAZURE_STORAGE_KEY.Example:
data = azure.storage.read ("mycontainer", "myfile.txt", ... "AccountName", "mystorage", "AccountKey", "abc123==")