data:image/png;base64 - decoding the HTML

Hi
I have seen some code which really puzzles me, it is:

<image id="OpenLayers_Geometry_Point_6367" cx="312.4132960588904" cy="218.4827694234491" r="1" preserveAspectRatio="none" x="312" y="206" width="125" height="50" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAH0AAAAyCAYAAABxjtScAAAF6UlEQVR4Xu2Z3SttWxTA5/a1N3fTptzui/IRl3yWunjxgrq4D6euHOUrIR58lEIoHIoiKcQDUZQXSpIi8uYP8OBFePDELYUHznF93Dlmd6zmXnutPW3bOZy556rdZq4x5xpj/MYYc8y1LURdPucBi89ZrAwmCroPBoGCrqD7oAd80GSvM72jo6PPB/3205k8MjLyBZX2CjoAj4mJ6YuLi/vpnOBLCp+enhL6GaDg+8Fur6Hn5+f3FRQUeLWOLwF4D1t3d3efd3Z2FPT3cP57PVNBf4Xnt7e3SU9PDyktLSV0S3vFCm835fz8nIyNjZGhoSESGBj4ooU9ht7c3GwNDQ11PDw8OPz9/R1PT0/s4+fn53h+fv6blvd8vrzrlTo8PCTV1dVkcnKS5OTkEDqX9Pb2kqurKzI+Ps4UB5mmpiayublJQkJCCH0WmzM7O8v+xwudz1sKINra2hiQs7MzdgvhgC6wzuXlJRsHYLm5uS5Oc+dI0KWiooIMDw8T2r+wdfR6wLrwzB9xvQl0qvAaVfYfh8MRRw20w4eCsdOxCPq3DfZ9CuZrcHCwn81mewgKCvoXviMiIn6l36SwsNBpP+eVAmfX1taSqakpzWFwf3R0lMFuaGjQxufm5khYWBhzHjgV/oYgcXfhnOTkZHJzc6MF1cDAAIN9e3urjSM8CJCVlRWnTBFB5wMQdNvY2NACFoJ4fn6ePe+lmedNcLwJ9O7u7kPqkN8jIyO/xcfH2xITEwkFagGgFDQJCAjwqElDpVpbWxlUHjhmyfX1NYOBkGEcobS0tJC1tTVh+YLnNDY2kuXlZadqYFYlAA4EQ1FRkUfQ+efQgHfJegSIdkdHR5PV1VVWtcBGrDS0WmpjfHnGeWD3xMQEgfkLCw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Yp6EIXySegoMvHVGiRgi50kXwCCrp8TIUWKehCF8kn8B/81GtvABNw0QAAAABJRU5ErkJggg==" style="opacity: 1" fill="#000000" fill-opacity="1" stroke="#000000" stroke-opacity="1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></image>

Open in new window



I'm looking at doing something similar myself
However, I would like to know how its done on this site first
Is there a way to decode the Data Image link?

Its shows this popup bubble image:
testtest3333Depending on the length of the driver name, the bubble changes in size
the text is not text in the HTML, its all part of the image, so its obviously created server side, but i just wanted to try and figure out a bit more on how to do it and was hoping decoding html might help
websssAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

käµfm³d 👽Commented:
Is there a way to decode the Data Image link?
Yes. These are known as data URIs. They are most-often encoded, as is the case with this one, in base 64 encoding. So all you need to do is decode the base 64 string. However, the result you end up with will be binary data, so you would want to write it out to disk in order to actually view it. In this example, your image data is:

Decoded Image
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.