AzureStorage.Blob.get_blob_content
You're seeing just the function
get_blob_content
, go back to AzureStorage.Blob module for more information.
The Get Blob operation reads or downloads a blob from the system, including its metadata and properties.
Supported options
:lease_id
- Active lease id The default value is""
.:json
- Iftrue
return content is inmap()
The default value isfalse
.
# get plain/text content
{:ok, content, attributes} = context
|> get_blob_content("container1", "data.txt")
{:ok, "Hello World!", %{"Content-Type" => "plain/text", ...}}
# get json content
context |> get_blob_content("container1", "data.json", json: true)
{:ok, %{"data" => []}, %{"Content-Type" => "application/json", ...}}