Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

data:image/png;base64 - decoding the HTML

Posted on 2014-07-28
1
Medium Priority
?
1,246 Views
Last Modified: 2014-07-29
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/xcfH2xITEwkFagGgFDQJCAjwqElDpVpbWxlUHjhmyfX1NYOBkGEcobS0t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p6EIXySegoMvHVGiRgi50kXwCCrp8TIUWKehCF8knoKDLx1RokYIudJF8Agq6fEyFFinoQhfJJ6Cgy8dUaJGCLnSRfAIKunxMhRYp6EIXySegoMvHVGiRgi50kXwCCrp8TIUWKehCF8kn8B/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
0
Comment
Question by:websss
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 2000 total points
ID: 40226008
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

Featured Post

Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question