diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StandardMessageCodec.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StandardMessageCodec.ets index ffc69484525d50d24e68119a83d839587a6fa084..d9b52ff3efb983a94766e8b8fbee154f9834071a 100644 --- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StandardMessageCodec.ets +++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/StandardMessageCodec.ets @@ -196,7 +196,7 @@ export default class StandardMessageCodec implements MessageCodec { writeBytes(stream: ByteBuffer, bytes: Uint8Array) { this.writeSize(stream, bytes.length) - bytes.forEach(item => stream.writeInt8(item)) + stream.writeUint8Array(bytes); } readSize(buffer: ByteBuffer) {