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:37:55 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bfdaca1cd4101a981d6881549123e354c9fba7dc
bfdaca1c
1 parent
dacbfc55
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
app.js
app.js
View file @
bfdaca1
...
...
@@ -87,12 +87,8 @@ async function handleEvent(event) {
.
then
((
stream
)
=>
{
stream
.
on
(
'data'
,
(
chunk
)
=>
{
const
fs
=
require
(
'fs'
);
const
file
=
fs
.
createWriteStream
(
'./photo/image.jpeg'
);
for
(
let
i
=
0
;
i
<=
1
e6
;
i
++
)
{
file
.
write
(
chunk
);
}
file
.
end
();
});
const
file
=
fs
.
writeFileSync
(
'./photo/image.jpeg'
,
chunk
);
});
var
cheerio
=
require
(
'cheerio'
);
...
...
Please
register
or
login
to post a comment