I am receiving a base64 encoded string of a tiff image from the Java server side. Through ajax we are able to retrieve the string. But now we need to be able to display this encoded string of a tiff image on the browser as an image. How can this be done. I am not able to find any help to be able to decode the string on the client side using javascript. Any help would be appreciated as i have been working on this for a long time without being able to come a solution.
directly appending the encoded string to the src attribute does not work
<img src="data:image/tiff;base64,+string+">
Thanks, Marc