node.js grabbing img example?
There's an image I want to send to my server: http://www.google.com/images/logos/ps_logo2.png
at /tmp/img.png
I understand I have to use http.get, but how sure how to d开发者_JAVA百科o it exactly.
Can someone show me a quick example?
Thanks.
Sounds like you want this example (see the answer section)?
Node.js copy remote file to server
精彩评论