Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -87,6 +87,7 @@ async function handleEvent(event) { | ... | @@ -87,6 +87,7 @@ async function handleEvent(event) { |
87 | .then( | 87 | .then( |
88 | async(stream) => { | 88 | async(stream) => { |
89 | await stream.on('data', (chunk) => { | 89 | await stream.on('data', (chunk) => { |
90 | + console.log(typeof(chunk)); | ||
90 | fs.writeFileSync('./photo/1.png',chunk); | 91 | fs.writeFileSync('./photo/1.png',chunk); |
91 | var cheerio = require('cheerio'); | 92 | var cheerio = require('cheerio'); |
92 | var uriBase = 'https://koreacentral.api.cognitive.microsoft.com/vision/v2.1/ocr'; | 93 | var uriBase = 'https://koreacentral.api.cognitive.microsoft.com/vision/v2.1/ocr'; | ... | ... |
-
Please register or login to post a comment