DART – Convert BLOB to LIST

I am using protocol buffers in dart, but there is a problem due to the way the data is received from the web socket connection. The binary data is received as a Blob, and the constructor of the protobuf message expects List< int>. How do I convert Blob to List?
I can achieve this function by setting the binaryType property on the WebSocket object to “arraybuffer”.

< /p>

webSocket.binaryType = “arraybuffer”;

I am using protocol buffers in dart, but due to the way the data is received from the web socket connection And there is a problem. Binary data is received as Blob, and the constructor of protobuf message expects List. How can I convert Blob to List?

I can achieve this function by setting the binaryType property on the WebSocket object to “arraybuffer”.

webSocket.binaryType = “arraybuffer ”;

Leave a Comment

Your email address will not be published.