How to display PDF file content in MVC 6?

Multi tool use
Multi tool use


How to display PDF file content in MVC 6?



I have MVC application and I need to display content in view.
Currently I am using following code:


var base64EncodedPdf = Convert.ToBase64String(Model.FileContent);



Model.FileContent is of type byte. It works fine for files without tons of content:
working.
But, when I am trying to display file with more content I get
this.









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

RGCgf9ACsWE,Po1oIQOeZO84vl6aMvLPZ,RPa,S,o
UDarCnGVtM5hPp1m

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications