I am getting base64 for string from backend and i am then decoding it in Javascript to show on browser.
This string can be any file .pdf, .img, .docx, .zip etc.
My base64 string does not include the mime-type for example 'data:application/pdf;base64' part. So i need to get mime type of base64.
Is there any way to solve this solution with Javascript or Jquery?