nodejs 공부중인데, 파일 읽어서 사진 가져오려고
<!DOCTYPE html>
<head>
<title>picture11</title>
</head>
<body>
<h1>picture 2</h1>
<img src="" width="2%">
</body>
</html> 이렇게 만들었는데, 사진 크기가 수정이 안되네요ㅜ
main.js 파일은 else if(pathname==='/picture'){
fs.readFile('./picture.jpg', function(err, data){
res.writeHead(200);
res.write(data);
res.end();
});
} 요렇습니다. 사진 크기가 수정이 안되네요..ㅜ 방법 아시는 분 계시나요?
The request / response that are contrary to the Web firewall security policies have been blocked.
| Detect time | 2021-03-15 13:32:17 |
| Detect client IP | 1.243.51.122 |
| Detect URL | https://gall.dcinside.com/ajax/gallery_ajax/chk_tag |
난 코수가 아니라 클릭안하려 해따. 근데 관음증있는 제목이라 낚였다. 일단은 그렇다