roberto64 Active Member Licensed User Longtime User Feb 17, 2021 #1 FTP error, it is not clear why it gives me this error "(RuntimeException) java.lang.RuntimeException: 550 SSL / TLS required on the control channel" connection example help Thanks. Code: Copy Dim ftp As FTP ftp.Initialize("FTP", "IP", 21, USER", "PASSWORD") ftp.PassiveMode = True If ftp.IsInitialized=True Then Log("OK FTP!") ' End If ftp.UploadFile (File.DirRootExternal, "Camera.png", False, "/Camera.png")
FTP error, it is not clear why it gives me this error "(RuntimeException) java.lang.RuntimeException: 550 SSL / TLS required on the control channel" connection example help Thanks. Code: Copy Dim ftp As FTP ftp.Initialize("FTP", "IP", 21, USER", "PASSWORD") ftp.PassiveMode = True If ftp.IsInitialized=True Then Log("OK FTP!") ' End If ftp.UploadFile (File.DirRootExternal, "Camera.png", False, "/Camera.png")
udg Expert Licensed User Longtime User Feb 19, 2021 #21 I am uploading an image from my server / host and saving it in my smartphone Click to expand... My suspect was right Use (from FTP) DownloadFile (ServerFilePath As String, AsciiFile As Boolean, DeviceFolder As String, DeviceFile As String) As Object You have events DownloadProgress and DownloadCompleted Upvote 0
I am uploading an image from my server / host and saving it in my smartphone Click to expand... My suspect was right Use (from FTP) DownloadFile (ServerFilePath As String, AsciiFile As Boolean, DeviceFolder As String, DeviceFile As String) As Object You have events DownloadProgress and DownloadCompleted
DonManfred Expert Licensed User Longtime User Feb 19, 2021 #22 In addition to what @udg said i suggest to get familar with the terms and how FTP works. Your App is using the FTP-Client. So getting anything from the FTP-Server is a DOWNLOAD. Putting something into the FTP Server is a UPLOAD. There is no such thing like "the server send anything". The Client REQUEST something and then the server sends the file. But it is the CLIENT who tell the server to send something. Download and Upload does have different Parameters. And for sure different meanings. Last edited: Feb 19, 2021 Upvote 0
In addition to what @udg said i suggest to get familar with the terms and how FTP works. Your App is using the FTP-Client. So getting anything from the FTP-Server is a DOWNLOAD. Putting something into the FTP Server is a UPLOAD. There is no such thing like "the server send anything". The Client REQUEST something and then the server sends the file. But it is the CLIENT who tell the server to send something. Download and Upload does have different Parameters. And for sure different meanings.
NikB4x Member Licensed User Longtime User Feb 19, 2021 #23 This is the updated example Attachments TestFtp.zip TestFtp.zip 21.7 KB · Views: 471 Upvote 0
roberto64 Active Member Licensed User Longtime User Feb 23, 2021 #24 hi, FTP works correctly, but now it gives me this error B4A Version: 10.60 Parsing code. (0.22s) Java Version: 11 Building folders structure. (0.05s) Running custom action. (5.49s) Compiling code. (1.51s) Compiling layouts code. (0.14s) Organizing libraries. (0.00s) (AndroidX SDK) Generating R file. Error e:\androidut\sdktools\tools\..\extras\b4a_remote\androidx\savedstate\savedstate\1.1.0\unpacked-savedstate-1.1.0\res\values\values.xml:3: error: Found tag id where item is expected e:\androidut\sdktools\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-viewmodel\2.3.0\unpacked-lifecycle-viewmodel-2.3.0\res\values\values.xml:3: error: Found tag id where item is expected e:\androidut\sdktools\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-runtime\2.3.0\unpacked-lifecycle-runtime-2.3.0\res\values\values.xml:3: error: Found tag id where item is expected Click to expand... as I can see I have to remove all permissions on my application and the "RuntimePermissions" library Upvote 0
hi, FTP works correctly, but now it gives me this error B4A Version: 10.60 Parsing code. (0.22s) Java Version: 11 Building folders structure. (0.05s) Running custom action. (5.49s) Compiling code. (1.51s) Compiling layouts code. (0.14s) Organizing libraries. (0.00s) (AndroidX SDK) Generating R file. Error e:\androidut\sdktools\tools\..\extras\b4a_remote\androidx\savedstate\savedstate\1.1.0\unpacked-savedstate-1.1.0\res\values\values.xml:3: error: Found tag id where item is expected e:\androidut\sdktools\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-viewmodel\2.3.0\unpacked-lifecycle-viewmodel-2.3.0\res\values\values.xml:3: error: Found tag id where item is expected e:\androidut\sdktools\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-runtime\2.3.0\unpacked-lifecycle-runtime-2.3.0\res\values\values.xml:3: error: Found tag id where item is expected Click to expand... as I can see I have to remove all permissions on my application and the "RuntimePermissions" library