This works very well when the files are small. As soon as the files get larger (> 1 MB). Can no longer display the PDF.
<embed src="@PDFContent" style="width: 100%;height: 930px;border: none;" frameborder="0" />
PDFContent = "data:application/pdf;base64," + Convert.ToBase64String(File.ReadAllBytes(@"Server:\Temp\test.pdf"));
The file is on a server and not on the IISS. what could be the problem