I received data from web services as byte I catch them in this property
public byte[] Content { get; set; }
I have a web view to display the content of that byte. How to do this
is it need to convert to pdf or can these content directly called by the webview
string myFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "myFile.pdf");
System.IO.File.WriteAllBytes(myFilePath, Content);
Then like @Jason suggested, you can pass the myFilePath
to your webview
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.