I am using bindings of azure function to get the blob content and to store the file in blob.
Below is the code that I am using but its not passing anything to the output bindings.
const JSZip = require("jszip");
const saveas = require('file-saver')
module.exports = async function (context, myBlob) {
context.log("Function Triggered. ", context.bindingData.blobTrigger);
var input = context.bindings.myBlob;
var inputBuffer = Buffer.from(input);
var zip = new JSZip();
zip.file(inputBuffer);
zip.generateAsync({type:"blob"})
.then(function(content) {
var j = content;
context.bindings.myOutputBlob = j;
});
}
Please let me know what I am doing wrong here.