cefsharp / CefSharp

.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
http://cefsharp.github.io/
Other
9.89k stars 2.92k forks source link

C# call a js to set a input which type is hidden with a 10M size string,and cefsharp become all white #1883

Closed DoubleFooker closed 7 years ago

DoubleFooker commented 7 years ago

c# call js: wb.ExecuteScriptAsync("addPic("+a string with 10Mb size+")");

amaitland commented 7 years ago

Your probably crashing the render process. Basically avoid sending such large files as strings. Load your images using a standard request and fulfil them using a ResourceHandler. Search the source (or use Google) to find examples.