Android Question Problem Library jcifs-ng

stefano cavallari

Member
Licensed User
Longtime User
Good evening,

i have a problem with a program.
I am performing the file transfer, using the SMB.
I am using the jcifs-ng library (v. 0.32).

I initialized the smbClient variable and when I call the SMBINIT procedure I get this message:



Do you think of what's generated?




B4X:
        ReadFile.Initialize(File.OpenInput(File.DirRootExternal & "/TentataVendita/Configurazione","Parameter.ini"))
        credential.Domain = ReadFile.ReadLine
        credential.Username = ReadFile.ReadLine
        credential.Password = ReadFile.ReadLine
        credential.Share = "smb://" & credential.Domain & "/" & ReadFile.ReadLine
        ReadFile.Close
    
        tipotrasferimento="scarico"
        SMBInit(credential)
        
        
        
Sub SMBInit(cred As SMBCred)
    smbClient.Initialize("SMBClient",cred.Domain,cred.Username,cred.Password,cred.Share)
End Sub



Thanks for your help
 

stefano cavallari

Member
Licensed User
Longtime User
Thanks for the reply, I understand the error.
The error was due to the fact that we had also put the flag in the SMB library as well as in the jcif one.
 
Upvote 0

netsistemas

Active Member
Licensed User
Longtime User
I has problem with samba protocol transfer. And finally,
i change in my proyect, samba to ftp transfer (my customer, now, have a filezilla server running, and i do transfer by ftp).
good loock.
in future, may be open router ports and redirect trafic from out of intranet, to the server/pc with filezilla.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…