StringUtils. EncodeBase64 (Data() As Byte) As StringEncodes the given bytes array into Base64 notation.Example: Dim su As StringUtils Dim encoded As String encoded = su.EncodeBase64(data) 'data is a bytes array Bug? [IGNORE] StringUtils EncodeBase64 Fails - WhiteWizard (first post)    Dec 2, 2020 My mistake, surelly is a char "0" ..."7" what is converted to Base64 in NODE JS, it works character based and not byte based as B4X.
line 6 should be
Base64Hint(0) = asc(selHint)
... B4J Code Snippet [B4X] Solving encoding issues with html mails sent with SMTP (Net library) - Erel    Mar 14, 2021   (11 reactions) Encoding the html text with base64 avoids encoding issues, especially with MS Outlook. This code is compatible with B4A and B4J: Dim su As StringUtils smtp.Body = su.EncodeBase64(html.GetBytes("utf8")) 'html = the html body smtp.AdditionalHeaders.Put("Content-Transfer-Encoding", "BASE64") Note that it will not work with messages with attachments.... B4A Question EncodeBase64/DecodeBase64 with StringUtils - Erel (first post)    Sep 24, 2013 You are not closing the OutputStream:
in1.InitializeFromBytesArray(su.DecodeBase64(str1),0,str1.Length)
Dim out2 As OutputStream = File.OpenOutput(File.DirRootExternal, "sign18112401_b.png",False)
File.Copy2(in1, out2)
out2.Close
... B4A Question conversione array byte -> stringa -> byte - Erel (first post)    Jun 18, 2023 Moved to the questions forum. You cannot treat raw bytes as string. You will lose information. If you want to encode raw bytes as a string then use StringUtils.EncodeBase64 to convert the bytes to a base64 string.... B4A Question [B4X] create a tiny hash/url - Erel (first post)    Jul 15, 2020   (1 reaction) You should use StringUtils.EncodeBase64, however I don't see how it will help here.... B4A Question java.net.IDN. [Solved] - Erel (first post)    Feb 3, 2021 Read the documentation. It isn't expected to support raw strings. It expects strings with specific format. Use StringUtils.EncodeBase64 if you want to convert it to ASCII file name.... B4A Question Signature and Digest for XML - Erel (first post)    Aug 26, 2019 Never convert raw bytes to string. Use StringUtils.EncodeBase64 to convert the bytes to string.... B4A Question Base64 encode/decode image library error - Erel (first post)    Jul 21, 2019 Convert the image to bytes: https://www.b4x.com/android/forum/threads/b4x-bytes-to-file.70111/#post-445167
Convert the bytes to base64 string with StringUtils.EncodeBase64.... B4J Question How to encrypt with B4J and decrypt with VBA ? - amorosik    Jul 3, 2023 ), Password) Dim su As StringUtils Return su.EncodeBase64(b) End Sub Private Sub Decrypt(EncryptedText As String, Password As String) As String Dim c As B4XCipher Dim su As StringUtils Dim enc() As Byte = su.DecodeBase64(EncryptedText) Dim dec() As Byte = c.Decrypt(enc... Process_Globals End Sub Sub AppStart (Args() As String) Dim p As String = "123456" Dim s As String = "top secret" Dim enc As String = Encrypt(s, p) Log(enc) Dim dec... B4A Question Rijndael encryption with custom PassPhrase - Erel (first post)    Mar 20, 2018 StringUtils.EncodeBase64 is very simple: https://www.b4x.com/android/forum/pages/results/?query=StringUtils.EncodeBase64
I recommend you to start with the video tutorials: https://www.b4x.com/etp.html... Page: 1   2   3   4   5   6   7   |