Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -100,7 +100,7 @@ function handleEvent(event) { | ... | @@ -100,7 +100,7 @@ function handleEvent(event) { |
100 | 'Content-Type': 'application/octet-stream', | 100 | 'Content-Type': 'application/octet-stream', |
101 | 'Ocp-Apim-Subscription-Key': subscriptionKey | 101 | 'Ocp-Apim-Subscription-Key': subscriptionKey |
102 | }, | 102 | }, |
103 | - body: fs.readFileSync(event.message.image) | 103 | + body: event.message.image |
104 | }; | 104 | }; |
105 | console.log("1"); | 105 | console.log("1"); |
106 | request.post(options, function (error, response, body) { | 106 | request.post(options, function (error, response, body) { | ... | ... |
-
Please register or login to post a comment