How to display PDF file content in MVC 6?

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.