var fs = require('fs');

module.exports = function (context, xmlZipBlob) {
    context.log('Node.js blob trigger function processed blob:', xmlZipBlob);
    context.log(`typeof xmlZipBlob:`, typeof xmlZipBlob);

    fs.writeFile('xmlZip.txt', "Hello World", 'utf8', (err) => {
        if (err) {
            throw err;
        }

        context.log('saved blob to loal file called xmlZip.zip');
        context.done();
    });
};
var fs = require('fs');
var path = rqeuire('path');

module.exports = function (context, xmlZipBlob) {
    context.log('Node.js blob trigger function processed blob:', xmlZipBlob);
    context.log(`typeof xmlZipBlob:`, typeof xmlZipBlob);

    var tempDirectory = process.env["TMP"];
    var tempFileName = "xmlZip.zip";
    var fileDestination = path.join(tempDirectory, tempFileName);

    context.log('Writing blob file to: ', fileDestination);

    fs.writeFile(fileDestination, xmlZipBlob, function (error, result) {
        if (error) {
            throw error;
        }

        context.log('saved blob to loal file called: ', tempFileName);
        context.done();
    });
};
Update xmlBlob function to write to temp directory
Update xmlBlob function to write to temp directory
