摘要: private void ConvertImageToString() { byte[] bytesArr = File.ReadAllBytes(SelectedBk.ImgUrl); string imgBase64Str = Convert.ToBase64String(bytesArr); 阅读全文
posted @ 2024-07-12 17:54 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要: Copy from https://www.iditect.com/faq/csharp/wpf-webbrowser-control--how-to-suppress-script-errors.html#:~:text=To%20suppress%20these%20script%20error 阅读全文
posted @ 2024-07-12 12:16 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要: //xaml <Window x:Class="WpfApp206.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-07-12 11:52 FredGrit 阅读(17) 评论(0) 推荐(0) 编辑
摘要: One possible cause is include chinese characters, //Wrong code private void OpenClick(object sender, RoutedEventArgs e) { OpenFileDialog dialog=new Op 阅读全文
posted @ 2024-07-12 11:50 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑