J junaidahmed Well-Known Member Licensed User Longtime User Jun 17, 2023 #1 How to Encode string as base64 format in B4A ? Example : - string = Test@123 Encode base64 : VGVzdEAxMjM=
How to Encode string as base64 format in B4A ? Example : - string = Test@123 Encode base64 : VGVzdEAxMjM=
jahswant Well-Known Member Licensed User Longtime User Jun 17, 2023 #2 Dim su As StringUtils Dim Light As Strings = …….. su.Encode ( Light.GetByte Upvote 1
J junaidahmed Well-Known Member Licensed User Longtime User Jun 22, 2023 #3 jahswant said: Dim su As StringUtils Dim Light As Strings = …….. su.Encode ( Light.GetByte Click to expand... sorry there is no EnCode method availble in StringUtils ... please help how to do this Upvote 0
jahswant said: Dim su As StringUtils Dim Light As Strings = …….. su.Encode ( Light.GetByte Click to expand... sorry there is no EnCode method availble in StringUtils ... please help how to do this
TILogistic Expert Licensed User Longtime User Jun 22, 2023 #4 ? B4X: Public Sub TestBase64 Dim SU As StringUtils Dim s As String = "Hello" Log(SU.EncodeBase64(s.GetBytes("UTF8"))) End Sub Last edited: Jun 22, 2023 Upvote 0
? B4X: Public Sub TestBase64 Dim SU As StringUtils Dim s As String = "Hello" Log(SU.EncodeBase64(s.GetBytes("UTF8"))) End Sub
TILogistic Expert Licensed User Longtime User Jun 22, 2023 #5 tips: B4X: Public Sub TestBase64 Dim SU As StringUtils Dim s As String = "Test@123" Dim e As String = SU.EncodeBase64(s.GetBytes("UTF8")) Log(e) Dim b() As Byte = SU.DecodeBase64(e) Dim d As String = BytesToString(b, 0, b.Length, "UTF8") Log(d) End Sub Upvote 0
tips: B4X: Public Sub TestBase64 Dim SU As StringUtils Dim s As String = "Test@123" Dim e As String = SU.EncodeBase64(s.GetBytes("UTF8")) Log(e) Dim b() As Byte = SU.DecodeBase64(e) Dim d As String = BytesToString(b, 0, b.Length, "UTF8") Log(d) End Sub