0

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

1 Answers1

1
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