Android Question Remote Database Connector and SSL (https)

b4auser1

Well-Known Member
Licensed User
Longtime User
How to setup SSL (HTTPS) for connetions to Remote Database Connector server ?
 

timbald

Member
Licensed User
Longtime User
I get how RDC works and SSL etc. but lost on how a Reverse Proxy gives security on the connection between Android handset and Server with RDC/MySql on. Could someone please possible point me in the right direction as this is exactly what I now need to do with my first B4A android App. Many thanks.
 
Upvote 0

Fernando Melo

Member
Licensed User
Longtime User
I das thinking in reuse the rdc client passing the connection through a ssh tunnel. The rdc proofs to be very fast. In a application i have. But i would like to improve the security with minor code chances.
 
Upvote 0

Fernando Melo

Member
Licensed User
Longtime User
Using jRDC with SSL is working well. I only have a caveat when I try to save a Blob into file. The following was working well.
B4X:
If result.Tag = "descarregaficheiro" Then
                ProgressDialogShow2(Main.trans.GetText("Importing")&"...",False)
                For Each row() As Object In result.Rows
                    Dim out As OutputStream = File.OpenOutput(File.DirInternalCache,"out.csv",False)
                    Dim In As InputStream
                    Dim Buffer() As Byte
                    Buffer = row(0) ' gives error here, says that can not convert a string to byte array
                    In.InitializeFromBytesArray(Buffer, 0, Buffer.Length)
                    File.Copy2(In, out)
                    out.Close
                    In.Close

The upload code works well and I can see the csv file in database.
Can you help please.
 
Upvote 0
Top