diff --git a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebView.ets b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebView.ets index 39f964fe8e7f4c43721edc280556e084d11eeddf..c9aace06843809f8cafb0ccfea0b2bdc12c99360 100644 --- a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebView.ets +++ b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/in_app_webview/InAppWebView.ets @@ -879,7 +879,9 @@ export default class InAppWebView implements InAppWebViewInterface { async postUrl(url: string, postData: ArrayBuffer | null) { await this.waitControllerAttached(); - this.controller.postUrl(url, postData); + const uint8Array: Uint8Array = postData as Uint8Array; + const buffer: ArrayBuffer = uint8Array.buffer as ArrayBuffer; + this.controller.postUrl(url, buffer); } async loadDataWithBaseURL(baseUrl: string, data: string, mimeType: string, encoding: string, historyUrl: string) {