After thinking things through, I'm having to change my thinking of how I want to connect to MySQL databases in my upcoming library. PHP would be the logical & user friendly way to go, but I'm having problems with trying to convert a string to bytes, those bytes to an object and then the other way around. The following code is completely logical however it fails. I'm doing this so the MySQL class will be nearly identical to the local DB class. Any ideas as to why it fails?
B4X:
Public Sub Testing As String
Dim Hello As String = "Hello 12345"
Dim Input() As Byte = Conv.StringToBytes(Hello, "UTF-8")
Dim MainObject As Object = Ser.ConvertBytesToObject(Input)
Dim Output() As Byte = Ser.ConvertObjectToBytes(MainObject)
Return Conv.StringFromBytes(Output, "UTF-8")
End Sub