node-ftp
node-ftp copied to clipboard
Could not find addresses in XML
How do you guys workaround such issue ?
For some reason, I don't want to create a physical file and use the NodeJS Buffer instead.
const filename = '/in/remote_file.xml';
client.on('ready', function() {
client.put(Buffer.from(xmlData), filename, function(err) {
if(err) throw err;
client.end();
})
});
client.connect({
host: process.env.FTP_HOST,
user: process.env.FTP_LOGIN,
password: process.env.FTP_PASSWORD
});