Sunday, 16 April 2017

something about request(url).pipe()

when I use request(url).pip(fs.createWriteStream("1.jpg")), url include some special codes just as "@" and "×", then the NODE.js cannot create the jpg picture, and if I create the http file service, use the url without the special code, I can get the jpg picture correctly. can somebody tell me how to handle these special codes in url? thank you very much!



via wubin ma

No comments:

Post a Comment