0
  I am using a third party api to generate image from text.It is giving one object with base64. 
  How can i display that in my webpage with img tag. I tried showing that string but that is not working. 

enter image description here

Is there any way i can convert that object to actual base64 string ?

  • 1
    Does this answer your question? [convert base64 to image in javascript/jquery](https://stackoverflow.com/questions/21227078/convert-base64-to-image-in-javascript-jquery) – Reyno Jul 27 '23 at 10:02

1 Answers1

0

You can simply put this base64 value to the src attribute of the img tag. tag will automatically render base64 to image. e.g