faceCollection.add(path_to_image, nameImgEncoded).then(response => {
console.log(`Image ${path_to_image} added!`);
}).catch(error => {
console.log(`Oops! There is problem in uploading image ${error}.`);
console.log(error);
});
Oops! There is problem in uploading image TypeError: fs__WEBPACK_IMPORTED_MODULE_1___default.a.createReadStream is not a function.
TypeError: fs__WEBPACK_IMPORTED_MODULE_1___default.a.createReadStream is not a function
upload_path common_endpoints.js:84
add recognition_service.js:124
add recognition_service.js:114