In my application, I successfully save short fragments of sound recordings from a microphone to a PCM file. For convenience, I want to save the most important fragment of the recording in the SKL database using the BLOB format field. But so far I can’t do it. Maybe someone can help me, what is the error in my code.
lstFinish contains a sequence of lines from the recording buffer. I successfully save this list to a PСМ file and can play it through an audio streamer. But I can’t send part of this list to the BLOB field of the SQLight database
lstFinish contains a sequence of lines from the recording buffer. I successfully save this list to a PСМ file and can play it through an audio streamer. But I can’t send part of this list to the BLOB field of the SQLight database
Save Sound to BLOB field SQLight:
Dim b() As Byte
For i=i0 To i1
b(y)=lstFinish.Get(i)
y=y+1
Next
strQuery = "UPDATE `ZSampl` SET `Sound`= ? WHERE `crc`= ?"
Log(strQuery)
Dim bc As ByteConverter
Main.sqlDB.ExecNonQuery2(strQuery, Array As Object(bc.HexFromBytes(b), CRC))