My base64 PDF is too large that when I try and open it in a window, the url isn't pasted. I then substring'd it and the link would paste but of course.. it doesn't open as it hasn't received the whole base64.
Code:
$.ajax({
url: [database-url-here],
type: 'GET',
dataType: 'json',
success: function(data){
var pdf = (data.pdf).toString();
window.open(pdf);
}
});