Error Calling External Object using Putfile (wodSFTP / wodSFTP.NET / wodSFTPdll)
I've got a powerbuilder program
and I'm getting an error when trying to call putfile.
I've seen this problem reported before... but, couldn't see how it got fixed
below is my code
I'm trying to create a key file, and transmit it using login /password
ole_cer = CREATE oleobject
ole_cer.ConnectToNewObject( WeOnlyDo.Certificate.1 )
ole_cer.generatekey(0)
f_path = 'C:' + d_code + '.txt'
ole_cer.savekey(f_path)
//ole_ftp.LicenseKey =
ole_ftp.object.hostname = ftp_site
ole_ftp.object.login = ftp_acc
ole_ftp.object.password = ftp_pass
ole_ftp.object.authentication = 1
ole_ftp.object.transfermode = 0
ole_ftp.object.blocking = 1
ole_ftp.object.protocol = 1
ole_ftp.object.compression = 6
ole_ftp.object.passive = 1
ole_ftp.object.port = 22
p_state = 1
f_list = cuser_directory+'JS11_SEND*.*'
counter = 0
counter_tot = 0
ole_ftp.object.connect()
ole_ftp.object.remotepath='/sstyer/'
messagebox('error',f_path)
ole_ftp.object.putfile('c:0755.txt',ole_ftp.object.remotepath)
ole_ftp.object.disconnect()
Re: Error Calling External Object using Putfile
Scot,
Can you please place PutFile call inside of some error handling routine (i.e. try...catch) available in PB?
What does error description say when you do so?
Regards,
Damba
Re: Error Calling External Object using Putfile
Scot,
Can you please place PutFile call inside of some error handling routine (i.e. try...catch) available in PB?
What does error description say when you do so?
Regards,
Damba
that's right... I had put the putfile, in the connected event
and... it transmitted ok. Sorry about the confusion
thanks for your help