I have a WPF WebBrowser Component, and I want to set the uri from a byte array of a .htm file,
is that possible, or I have to save the byte stream first?
I have a WPF WebBrowser Component, and I want to set the uri from
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
WebBrowser.NavigateToStreamallows you to display a HTML page contained in a stream. If you have abyte[], you could wrap it in aMemoryStreamto get aStreamobject.Alternatively, you could convert the
byte[]into a String (usingEncoding.GetStringwith the correct encoding) and then show it usingWebBrowser.NavigateToString.