Azure blob triger

console.log(context);
console.log(myBlob);
context.log("JavaScript blob trigger function processed blob \n Blob:", context.bindingData.blobTrigger, "\n Blob Size:", myBlob.length, "Bytes");
context.log("blob 大小:" + myBlob.length);
context.log("invocationId:" + context.invocationId);
context.log("container:" + context.bindingData.blobTrigger);
context.log("---------------------------");
context.log("URI:" + context.bindingData.uri);
context.log("---------------------------");
context.log("name:" + context.bindingData.name);
context.log("---------------------------");
context.log("uid:" + context.bindingData.username);

var message = {};
message.storageId = context.invocationId;
message.storageName = context.bindingData.name;
message.storageLength = myBlob.length;
message.storageLink = context.bindingData.uri;
context.log(message);
context.bindings.outputSbMsg = message;

你可能感兴趣的:(Azure blob triger)