PDF document from BASE64 encoded data

Hi All, I am publishing a REST service where I receive the content of a PDF in an encoded Base64 format in String. I need to convert that into a PDF and show it on the screen. I wont be having any template here as I can get anything from the consumed side. Any ideas how to show the content as PDF on the screen and user can download it as PDF document.   Regards, Ajay
1 answers

The problem is solved.

We added a filename attribute in the entity and always having that name with .pdf extension (as per our requirements no other files would be sent from consuming side) and when we open the content in Document viewer, it is showing as PDF and issue got solved.