Good evening all
I am trying to download a file from a server but I get the following error
java.lang.RuntimeException: Error retrieving file. (LastException.Message)
550 I can only retrieve regular files
The download code is
I have Changed True to False
I have tried many file types that are on the server (.txt,. csv, .html, .xls etc etc) Nothing will download
I have been able to successfully get a directory listing of files and folders but cannot download a single file
The aim is to download several files but atm I can't get anything to work
I can upload and download the same files with Filezilla without issue
My settings are
ftp.PassiveMode=True
ftp.TimeoutMs=10000
I am using Net v1.81
I have searched the forums but I cant find anything to shed any light
Anyone have a clue as to what is happening here?
I am trying to download a file from a server but I get the following error
java.lang.RuntimeException: Error retrieving file. (LastException.Message)
550 I can only retrieve regular files
The download code is
B4X:
Dim sf As Object = ftp.DownloadFile(ServerPathName, True ,Starter.gAppDirectory,"test.txt")
Wait For (sf) ftp_DownloadCompleted (ServerPath As String, Success As Boolean)
I have Changed True to False
I have tried many file types that are on the server (.txt,. csv, .html, .xls etc etc) Nothing will download
I have been able to successfully get a directory listing of files and folders but cannot download a single file
The aim is to download several files but atm I can't get anything to work
I can upload and download the same files with Filezilla without issue
My settings are
ftp.PassiveMode=True
ftp.TimeoutMs=10000
I am using Net v1.81
I have searched the forums but I cant find anything to shed any light
Anyone have a clue as to what is happening here?