Dynamic Web TWAIN: How to set username and password when using FTP download or upload?

Yes. You can use the FTPUserName property and the FTPPassword property.

Code (Javascript):

function ftpUpload() {
    var DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer');
    if (DWObject) {
        if (DWObject.HowManyImagesInBuffer == 0)
            return;
        DWObject.FTPUserName = "UserName";
        DWObject.FTPPassword = "Password";    
        DWObject.FTPUploadAllAsPDF("192.168.1.20", "/Test/test.pdf");  
    }
}

References:

FTPUserName,
FTPPassword,
FTPUploadAllAsPDF

Is this page helpful?

Leave a Reply

Your email address will not be published.