i am using azure blob triggers to identify when a container get updated. the trigger works fine. but it only returns the blob file as it is (like base 64 string). but how do i get the url for the blob file in this trigger.
function.js
{
"disabled": false,
"bindings": [
{
"name": "readText",
"type": "blobTrigger",
"direction": "in",
"path": "pngs/{name}",
"connection":"STORAGEConnectionString"
}
]
}
index.js
context.log('Node.js Blob trigger function processed', context.bindings);
You have to use context.bindingData:
context.bindingData.name;
context.bindingData.blobTrigger;
context.bindingData.uri;
Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With