C carlosmdg Member Licensed User Longtime User Aug 1, 2011 #1 Buenas! Alguien ha probado la libreria de FTP? Use los ejemplos de Erel que puso aqui http://www.b4x.com/forum/basic...android-ftp-tutorial.html Le pregunte a Erel y me contesto preguntandome si tenia el Service Module llamado DownloadService y si lo tengo, pero este nunca es llamado. Necesito ayuda con esto por favor!! Mi idea era hacer una sincronizacion via FTP, pero no puedo todavia. GRACIAS!! Les dejo por las dudas lo que tengo en mi codigo Code: Copy Sub Process_Globals ... Dim FTP As FTP End Sub Code: Copy Sub Activity_Create(FirstTime As Boolean) Activity.AddMenuItem2("Sincronizar","update2",LoadBitmap(File.DirAssets,"refresh.png")) If FirstTime Then FTP.Initialize("FTP", "ftp.xxx", 21, "user", "pass") End If End Sub Code: Copy Sub Update2_click sdRoot = File.DirDefaultExternal & "/" FTP.DownloadFile("/Team/prestadores.txt", False, sdRoot, "PRESTADORESFTP.txt") FTP.UploadFile(sdRoot,"Reg" & d.GetDeviceId & ".txt", True, "/Team/RegTmp" & d.GetDeviceId & ".txt") End Sub Y cuando uso el debug veo esto Code: Copy DownloadService [donesuccessfully=false, hc=anywheresoftware.b4a.http.HttpClientWrapper@44d029d0, jobstatus=0 , notification=1(Notification) Not initialized, status_done=2, status_none=0, status_working=1, target=(OutputStream) Not initialized, url=
Buenas! Alguien ha probado la libreria de FTP? Use los ejemplos de Erel que puso aqui http://www.b4x.com/forum/basic...android-ftp-tutorial.html Le pregunte a Erel y me contesto preguntandome si tenia el Service Module llamado DownloadService y si lo tengo, pero este nunca es llamado. Necesito ayuda con esto por favor!! Mi idea era hacer una sincronizacion via FTP, pero no puedo todavia. GRACIAS!! Les dejo por las dudas lo que tengo en mi codigo Code: Copy Sub Process_Globals ... Dim FTP As FTP End Sub Code: Copy Sub Activity_Create(FirstTime As Boolean) Activity.AddMenuItem2("Sincronizar","update2",LoadBitmap(File.DirAssets,"refresh.png")) If FirstTime Then FTP.Initialize("FTP", "ftp.xxx", 21, "user", "pass") End If End Sub Code: Copy Sub Update2_click sdRoot = File.DirDefaultExternal & "/" FTP.DownloadFile("/Team/prestadores.txt", False, sdRoot, "PRESTADORESFTP.txt") FTP.UploadFile(sdRoot,"Reg" & d.GetDeviceId & ".txt", True, "/Team/RegTmp" & d.GetDeviceId & ".txt") End Sub Y cuando uso el debug veo esto Code: Copy DownloadService [donesuccessfully=false, hc=anywheresoftware.b4a.http.HttpClientWrapper@44d029d0, jobstatus=0 , notification=1(Notification) Not initialized, status_done=2, status_none=0, status_working=1, target=(OutputStream) Not initialized, url=