[英]How can I display a pdf in a Google.Protobuf.ByteString in a new browser window or tab in a server side Blazor App?
So this works in displaying the file size of a pdf assembled from a.Net gRPC service, but I really would like to display the PDF in a new browser tab or window without storing it down as a file first.所以这适用于显示从 .Net gRPC 服务组装的 pdf 的文件大小,但我真的很想在新的浏览器选项卡中显示 PDF 或 window 而不是先将其存储为文件。 Note: I'm trying to avoid using JavaScript.
注意:我试图避免使用 JavaScript。
public void DisplayPDF(Google.Protobuf.ByteString pdf){
//Do real Stuff here instead
helloString = new MarkupString("PDF File size = " + pdf.Length.ToString() + " bytes");
InvokeAsync(StateHasChanged);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.