node-ftp icon indicating copy to clipboard operation
node-ftp copied to clipboard

Could not find addresses in XML

Open real050280 opened this issue 7 years ago • 0 comments

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
    });

real050280 avatar Sep 20 '17 12:09 real050280