I'm trying to open and display a PDF file stored in an external folder which is mapped in tomcat.
However when I read the file, convert it to byte array and set it to be displayed in an iFrame, the browser's pdf plugin shows a blank page Please check my code:

PS: I can open the same file by placing the url in the browser. So I believe I'm missing something in my code for sure.

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!