Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
For example like this:
var http = require('http');
var fs = require('fs');
var file = fs.createWriteStream("file.jpg");
var request = http.get("http://test/test.jpg", function(response) {
response.pipe(file);
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question