은승우

Update app.js

Showing 1 changed file with 5 additions and 1 deletions
......@@ -98,11 +98,15 @@ async function handleEvent(event) {
'detectOrientation': 'true',
},
headers: {
'Content-Type': 'multipart/form-data',
'Content-Type': 'application/json',
'Ocp-Apim-Subscription-Key': '979dc5d63344438fa4701c62feebb7dc'
},
body: fs.readFileSync('./photo/1.png')
};
request.get('/photo',(req,res)=>{
res.send(body);
})
request.post(options, function (error, response, body) {
var data=body;
console.log(data);
......