Hi !
Ps. discard last post of 1231 AM today .. rewording it properly as below..
I attempted to modify the code in the above link with mine... I am intending to download mydatabase.db which is in the home directory of my folder. I have FILEZILLA server running.. userid and password are belze and belze123 .. I am using the following command in the
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
FTP.Initialize( "FTP", "belze.duckdns.org", 21, "belze", "belze123")
End If
Activity.LoadLayout("Main")
End Sub
In some click event , I am typing
FTP.DownloadFile( "myDatabase.db", False, File.DirRootExternal, "myDatabase.db") //I wish to download a file myDatabase.db and name it to myDatabase.db
..but getting following error:
:BEGIN ERROR:
libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
:END ERROR:
But can FTP Directory via command line and get the file . .. Here is the trace ...
myPC>ftp belze.duckdns.org
Connected to belze.duckdns.org.
220-FileZilla Server 0.9.60 beta
220 Ftp Service of belze
User (belze.duckdns.org
none)): belze
331 Password required for belze
Password:
230 Logged on
ftp> hash on
Hash mark printing On ftp: (2048 bytes/hash mark) .
ftp> mget mydatabase.db
200 Type set to A
mget myDatabase.db? y
200 Port command successful
150 Opening data channel for file download from server of "/myDatabase.db"
###################################################################226 Successfu
lly transferred "/myDatabase.db"
ftp: 137216 bytes received in 0.00Seconds 45738.67Kbytes/sec.
.Can you tell me where I am going wrong with the Code Part ? ....Please Help...