I need to preview the Binary File, I can able to view only Pdf type Binary other than binary am getting Error "Failed to load content" in Browser as the Mime type is given as application/pdf but i don't know the mime type of Binary where the binary is from Base64, so is there any way to get Mime type of Base64.
I am getting that error when the base64 type is Png or Jpg.
Hi @sasikumar S, Please look at this stackoverflow post and see if it helps,https://stackoverflow.com/questions/57976898/how-to-get-mime-type-from-base-64-stringAccording to this base64 for1. PDF starts with "JVBERi0".2. PNG starts with "iVBORw0KGgo".3. JPG starts with "/9j/".ThanksGitansh Anand
Hi @Gitansh Anand
Thanks for replying .