Ajax PDF base64

Ajax PDF base64

Hello,

As yall have probably surmised by now, I have no idea what Im talking about half the time. So here goes ...

Im ...trying... to return a PDF stream from an ajax call. I have a stand alone program that runs the same code and produces a correct pdf ...

Im trying to get it to display in the browser(chrome) . How do I tell the browser that the data in the response is base64 from the ajax call. I understand about the contexttype and all but it's displaying gibberish. Or crashing chrome.
(like most of my applications)