B4J Question Send file into linux server

Roberto P.

Well-Known Member
Licensed User
Longtime User
I am trying to send a file to linux server, but I have problems setting the path. Has anyone already had this experience?

thank in advance
Regards
 

Roberto P.

Well-Known Member
Licensed User
Longtime User
I was not clear. I wanted to set the path to upload files in specific folders.

SOLVED

B4X:
Dim os As String = GetSystemProperty("os.name", "").ToLowerCase

If os.Contains("linux") Then
                dirfolder = "///opt/mydir/mysubdir/"
ELSE
dirfolder = C://MYDIR
            End If
                
            Dim out As OutputStream = File.OpenOutput(dirfolder, name, False)
 
Upvote 0
Top