face api with Nodejs
问题 I am using azure face api using node js, below is the code. However instead of the image hosted some where i want to use my local image and post it. i tried different options but it is not recognizing the image format or invalid image url below are the things i have tried 1) var stream = fs.createReadStream('local image url'); 2) var imageAsBase64 = fs.readFileSync('image.jpg','base64'); below is the code 'use strict'; const request = require('request'); // Replace <Subscription Key> with