Webview2 not able to upload stream more than 65MB stream in "CoreWebView2.Environment.CreateWebResourceResponse(stream, 200, "OK", string.Empty);" #4525
Unanswered
SajidMemon44
asked this question in
Q&A
Replies: 1 comment 1 reply
-
We run in the exact the same issue as you descripe. We use WPF, NetFramework 4.8, TestPC runs on Windows 11: Any suggestions or ideas how to fix it would be nice. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using webview2 , i want to send file using "CoreWebView2.Environment.CreateWebResourceResponse(stream, 200, "OK", string.Empty);" file size is more than 70MB it was cause error
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at WinProjectE.App.Main()
System.Runtime.InteropServices.SEHException
HResult=0x80004005
Message=External component has thrown an exception.
Source=
StackTrace:
Method used :
private void CoreWebView2_WebResourceRequested(object sender, CoreWebView2WebResourceRequestedEventArgs e)
{
if (e.Request.Uri.Contains("/XXX/XXX/XXX/XXX/", StringComparison.OrdinalIgnoreCase))
{
string filename = Path.GetFileName(e.Request.Uri);
string filePath = Path.Combine(App.oGlobalInput.TempDirectory, filename);
}
We try this approach as well but still same error : https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/working-with-local-content?tabs=dotnetcsharp
Beta Was this translation helpful? Give feedback.
All reactions