R Ramon Bustamante Member Licensed User Dec 2, 2017 #1 Hi guys, I have 3 strings and I need to convert them to a byte array and join them. In which way it is posible to do. Thanks
Hi guys, I have 3 strings and I need to convert them to a byte array and join them. In which way it is posible to do. Thanks
Emme Developer Well-Known Member Licensed User Longtime User Dec 2, 2017 #2 Ramon Bustamante said: Hi guys, I have 3 strings and I need to convert them to a byte array and join them. In which way it is posible to do. Thanks Click to expand... B4X: Dim s(3) As String = Array As String("ooook","soooo","tryyyy") Dim st As StringBuilder st.Initialize For Each ss As String In s st.Append(ss) Next Dim b() As Byte = st.ToString.GetBytes("UTF8") Upvote 0
Ramon Bustamante said: Hi guys, I have 3 strings and I need to convert them to a byte array and join them. In which way it is posible to do. Thanks Click to expand... B4X: Dim s(3) As String = Array As String("ooook","soooo","tryyyy") Dim st As StringBuilder st.Initialize For Each ss As String In s st.Append(ss) Next Dim b() As Byte = st.ToString.GetBytes("UTF8")
Erel B4X founder Staff member Licensed User Longtime User Dec 3, 2017 #3 And for general arrays of bytes: https://www.b4x.com/android/forum/threads/b4x-join-arrays-of-bytes.86812/ Upvote 0
And for general arrays of bytes: https://www.b4x.com/android/forum/threads/b4x-join-arrays-of-bytes.86812/