Android Question FTP error

roberto64

Active Member
Licensed User
Longtime User
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.

FTP:
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
I am uploading an image from my server / host and saving it in my smartphone
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

DonManfred

Expert
Licensed User
Longtime User
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:
Upvote 0

roberto64

Active Member
Licensed User
Longtime User
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


as I can see I have to remove all permissions on my application and the "RuntimePermissions" library
 
Upvote 0
Top