nodejs读取图片返回给浏览器显示
response.setHeader("Content-Type", contentType);//格式必须为 binary 否则会出错var content = fs.readFileSync(url,"binary");response.writeHead(200, "Ok");response.write(content,"binary"); //格式必须为 binary,否则会出错response.end();二、动态文件流处理原理:使用nodejs 的fs.createReadStream来处理,这样处理的好处是断点续传。response.set( 'content-type',