hello everyone
a question? It is possible to save the content of a list type variable in a database in Mysql.
I have the following code:
In this list type variable the byte array that represents the sound is recorded: "buffers"
In a local KVS type database, you can store the variable and then retrieve it from the database and it works correctly, my question is how can I do it in a database in mysql
thank you
a question? It is possible to save the content of a list type variable in a database in Mysql.
I have the following code:
B4X:
Sub btnStartRecording_Click
Private buffers As List
rp.CheckAndRequest(rp.PERMISSION_RECORD_AUDIO)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result = False Then
xui.MsgboxAsync("Debe Habilitar los permisos", "")
Return
End If
If streamer.PlayerBufferSize = 0 Then
streamer.Initialize("streamer", 22050, True, 16, streamer.VOLUME_MUSIC)
End If
buffers.Initialize
streamer.StartRecording
End Sub
In this list type variable the byte array that represents the sound is recorded: "buffers"
B4X:
Sub streamer_RecordBuffer(Buffer() As Byte)
buffers.Add(Buffer)
End Sub
B4X:
Sub GuardarAudio(lista As List)
kvs.Put("sound01",lista)
End Sub
In a local KVS type database, you can store the variable and then retrieve it from the database and it works correctly, my question is how can I do it in a database in mysql
thank you