jeronimovilar Active Member Licensed User Longtime User Apr 9, 2019 #1 is it possible to put (ftp) a net file using Android? example: Code: ftp.Initialize("ftp", "your.server", 21, "user", "password") ftp.UploadFile("\\192.168.0.100\folder", "somefile", False, "/somefile")
is it possible to put (ftp) a net file using Android? example: Code: ftp.Initialize("ftp", "your.server", 21, "user", "password") ftp.UploadFile("\\192.168.0.100\folder", "somefile", False, "/somefile")
DonManfred Expert Licensed User Longtime User Apr 9, 2019 #2 jeronimovilar said: ftp.UploadFile("\\192.168.0.100\folder", "somefile", False, "/somefile") Click to expand... Probably no. - As the \\path is a Networkpath you need to access this path using SMB library first (the FTP Library does not have access to any SMB Resource). - Download the fileto your device - and then you can upload it to FTP. If the SMB Library is not working for you as you need to use SMB 2 Protocol: You can try my jcifs-ng Library. Upvote 0
jeronimovilar said: ftp.UploadFile("\\192.168.0.100\folder", "somefile", False, "/somefile") Click to expand... Probably no. - As the \\path is a Networkpath you need to access this path using SMB library first (the FTP Library does not have access to any SMB Resource). - Download the fileto your device - and then you can upload it to FTP. If the SMB Library is not working for you as you need to use SMB 2 Protocol: You can try my jcifs-ng Library.
Erel B4X founder Staff member Licensed User Longtime User Apr 10, 2019 #4 If a FTP server is running on the PC then it is possible to access it. Upvote 0
jeronimovilar Active Member Licensed User Longtime User Apr 10, 2019 #5 No. My file is on the PC´s and server on Internet Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 10, 2019 #6 I'm afraid that I don't understand the question in this thread. You can use the FTP library to upload files to any FTP server. Upvote 0
I'm afraid that I don't understand the question in this thread. You can use the FTP library to upload files to any FTP server.
jeronimovilar Active Member Licensed User Longtime User Apr 10, 2019 #7 - my app is on smart and tablet - connect to my FTP server is ok. - the PC and the smart/tablet is on INTRANET - the FTP server is on INTERNET - If my file on smart to upload is ok, but... but i need to upload a file that is on PC (\\192.168.0.10\folder shared\file.txt) to FTP Server (177.55.116.184) using my android app. Code: ftp.Initialize("ftp", "177.155.116.184", 21, "user", "password") ftp.UploadFile("\\192.168.0.100\FolderShared", "somefile", False, "/somefile") is it clear? Upvote 0
- my app is on smart and tablet - connect to my FTP server is ok. - the PC and the smart/tablet is on INTRANET - the FTP server is on INTERNET - If my file on smart to upload is ok, but... but i need to upload a file that is on PC (\\192.168.0.10\folder shared\file.txt) to FTP Server (177.55.116.184) using my android app. Code: ftp.Initialize("ftp", "177.155.116.184", 21, "user", "password") ftp.UploadFile("\\192.168.0.100\FolderShared", "somefile", False, "/somefile") is it clear?
Erel B4X founder Staff member Licensed User Longtime User Apr 10, 2019 #8 Yes. DonManfred answer is the correct answer. You need to first download the file from the PC. You can do it with SMB or by running a FTP server on the PC. Upvote 0
Yes. DonManfred answer is the correct answer. You need to first download the file from the PC. You can do it with SMB or by running a FTP server on the PC.
jeronimovilar Active Member Licensed User Longtime User Apr 10, 2019 #9 OK. do you have a example using this SMB? Upvote 0
DonManfred Expert Licensed User Longtime User Apr 10, 2019 #10 You should start a new thread for any new question. Additionally you should check the available example first. Upvote 0
You should start a new thread for any new question. Additionally you should check the available example first.
jeronimovilar Active Member Licensed User Longtime User Apr 10, 2019 #11 Thank you for your attention. Upvote 0