This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Our requirement is to open a pdf file in a browser though a portlet . The pdf file is soted in 3rd party repositary and vendor has provided a webservice. The webservice method gives us the pdf as steam of bytes i.e byte.
We need to convert this byte into pdf and diplay in browser. We wrote the below java code to achieve this . We get the file opened in browser , but with junk characters in browser. Any help is greatly appreciated. Thanks!