dibesw Active Member Licensed User Longtime User Jun 1, 2018 #1 HI, I need to convert Base64 string to Exadecimal like this: /f9MXQ ===> fdff4c5d How can I do? Thanks!!
HI, I need to convert Base64 string to Exadecimal like this: /f9MXQ ===> fdff4c5d How can I do? Thanks!!
DonManfred Expert Licensed User Longtime User Jun 1, 2018 #2 https://www.b4x.com/android/help/byteconverter.html Convert the Base64 to Bytes https://www.b4x.com/android/help/byteconverter.html#byteconverter_stringtobytes Convert bytes to Hex https://www.b4x.com/android/help/byteconverter.html#byteconverter_hexfrombytes Upvote 0
https://www.b4x.com/android/help/byteconverter.html Convert the Base64 to Bytes https://www.b4x.com/android/help/byteconverter.html#byteconverter_stringtobytes Convert bytes to Hex https://www.b4x.com/android/help/byteconverter.html#byteconverter_hexfrombytes
dibesw Active Member Licensed User Longtime User Jun 1, 2018 #3 Solved I extract directly hexadecimal from buffer... B4X: Sub astream_NewData (Buffer() As Byte) Dim ppp As String 'ppp=BytesToString(Buffer, 0, Buffer.Length, "UTF8") ppp=BCO.HexFromBytes(Buffer) Msgbox(ppp,"") End Sub Upvote 0
Solved I extract directly hexadecimal from buffer... B4X: Sub astream_NewData (Buffer() As Byte) Dim ppp As String 'ppp=BytesToString(Buffer, 0, Buffer.Length, "UTF8") ppp=BCO.HexFromBytes(Buffer) Msgbox(ppp,"") End Sub