I have Base64 files that I am trying to have the user download. I do not need these or want these to display in the browser. I need these to download. The data seems to be coming back fine, but only certain types of files are behaving.
I am grabbing down the data in an ajax call and then checking to see if there is any data.
$('button').on('click', function(){
   ...ajax call
  if (data) {
          var encode = 'data:image/' + data.dataTypeCode + ';base64,'
          var image = encode+data.data;
          window.open(image, '_blank');
      }
  })
This is only opening the word, excel, gif, mpg, tif and pdf files. This is not opening the png, jpg, mp3 files which I find odd.
 
    