Android Question V7.80 FTP.UploadFile()

Dey

Active Member
Licensed User
Longtime User
B4X:
Dim Folder As String=File.DirDefaultExternal
Dim sf As Object = FTP.UploadFile(Folder,Name,True, NomeFTP)
Wait For (sf) ftp_UploadCompleted (ServerPath As String, Success As Boolean)

B4A Version: 7.80
Parsing code. (0.58s)
Compiling code. (1.10s)
Compiling layouts code. (0.03s)
Organizing libraries. (0.00s)
Generating R file. (0.05s)
Compiling debugger engine code. (6.07s)
Compiling generated Java code. Error
B4A line: 86
Dim sf As Object = FTP.UploadFile(Folder,Name,Tr
javac 1.8.0_151
src\bar\tablet\sftp.java:438: error: incompatible types: void cannot be converted to Object
_sf = parent._ftp.UploadFile(processBA,_folder,_name,anywheresoftware.b4a.keywords.Common.True,_nomeftp);
 

DonManfred

Expert
Licensed User
Longtime User
make sure you do NOT have a Network.jar/xml in your additional library folder. It should be only in the internal libraryfolder.

Edit to add:
Sorry, it´s Net.jar/xml.

And i think it must be in the additional libs folder. At least here it is.

Which version of the Net library do you have? It should be 1.75
 
Last edited:
Upvote 0

Dey

Active Member
Licensed User
Longtime User
make sure you do NOT have a Network.jar/xml in your additional library folder. It should be only in the internal libraryfolder.

Edit to add:
Sorry, it´s Net.jar/xml.

And i think it must be in the additional libs folder. At least here it is.

Which version of the Net library do you have? It should be 1.75

I copied Net to default library
Version is 1.75
it seems ok
Thank you
 
Upvote 0
Top