Toggle navigation
Toggle navigation
This project
Loading...
Sign in
은승우
/
LINEBOT
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
은승우
2019-12-05 15:53:27 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
508fefd283dfdbd5410842a4266c068eb1185fa2
508fefd2
1 parent
bee66451
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
app.js
app.js
View file @
508fefd
...
...
@@ -86,10 +86,13 @@ async function handleEvent(event) {
client
.
getMessageContent
(
event
.
message
.
id
)
.
then
((
stream
)
=>
{
stream
.
on
(
'data'
,
(
chunk
)
=>
{
const
fs
=
require
(
'fs'
);
fs
.
writeFileSync
(
'image.png'
,
chunk
);
});
});
app
.
get
(
'/photo/1.png'
,(
req
,
res
)
=>
{
res
.
send
(
fs
.
readFileSync
(
'./photo/1.png'
));
})
var
cheerio
=
require
(
'cheerio'
);
var
uriBase
=
'https://koreacentral.api.cognitive.microsoft.com/vision/v2.1/ocr'
;
...
...
Please
register
or
login
to post a comment