Android Question DirInternal [SOLVED]

moore_it

Well-Known Member
Licensed User
Longtime User
Hi all,

i need to download a txt file from FTP to file.dirinternal folder, it's possible ?
Thanks
 

moore_it

Well-Known Member
Licensed User
Longtime User
thanks for answer but when i try this

B4X:
Dim sf As Object = DefsFtp.DownloadFile("/DEFS/"&Files(i).name,False,File.DirInternal&"/DEFS/"&code,Files(i).Name.ToUpperCase)
wait for (sf) FTP_DownloadCompleted (ServerPath As String, Success As Boolean)
If Success Then
end if

Success is always FALSE.

The serverpath is right the files(i).name is right the device path is right ... i don't unterstand
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
thanks for answer but when i try this

B4X:
Dim sf As Object = DefsFtp.DownloadFile("/DEFS/"&Files(i).name,False,File.DirInternal&"/DEFS/"&code,Files(i).Name.ToUpperCase)
wait for (sf) FTP_DownloadCompleted (ServerPath As String, Success As Boolean)
If Success Then
end if

Success is always FALSE.

The serverpath is right the files(i).name is right the device path is right ... i don't unterstand
Check that the ftp address is correct and that the sub-folder inside DirInternal already exists
 
Upvote 0

moore_it

Well-Known Member
Licensed User
Longtime User
Hi,

the ftp address is right infact i list the files in server folder.
I think that the problem is no folder on device but i don't know how to view that it's impossible for me to view the content of dirinternal.

Thanks
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top