<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cannot load images in KML Descriptions? in ArcGIS Earth Questions</title>
    <link>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1009782#M722</link>
    <description>&lt;P&gt;So, I wasn't able to get ArcGIS Earth to send auth along with the image requests, but I was able to embed the images in the KML using an SVG tag in the description, using an image tag inside that, and putting the image data in a data: URL. Documenting that here in case anyone runs into similar issues.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Dec 2020 16:38:55 GMT</pubDate>
    <dc:creator>andrewowenlinquest</dc:creator>
    <dc:date>2020-12-15T16:38:55Z</dc:date>
    <item>
      <title>Cannot load images in KML Descriptions?</title>
      <link>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1008996#M720</link>
      <description>&lt;P&gt;So, I'm using ArcGIS Earth as a KML viewer. The KML in question is behind a site securing using client certificates, and when I try loading images in placemarks using an `img` tag, it merely shows a placeholder image indicating that it wasn't able to load the image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, my question is twofold: 1) Is there a way to access images in KML descriptions that will use the authentication prompted by the server? 2) Is there a general means of debugging how ArcGIS deals with failure to load resources? I know in Google Earth Enterprise, there is a bit of ability to view a networking console.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 20:18:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1008996#M720</guid>
      <dc:creator>andrewowenlinquest</dc:creator>
      <dc:date>2020-12-11T20:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot load images in KML Descriptions?</title>
      <link>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1009063#M721</link>
      <description>&lt;P&gt;So, the core issue seems to be that ArcGIS Earth doesn't add auth to requests for images that are used in Placemark Descriptions? Has anyone else seen this, and, if so, what would one do about it?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2020 01:22:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1009063#M721</guid>
      <dc:creator>andrewowenlinquest</dc:creator>
      <dc:date>2020-12-12T01:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot load images in KML Descriptions?</title>
      <link>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1009782#M722</link>
      <description>&lt;P&gt;So, I wasn't able to get ArcGIS Earth to send auth along with the image requests, but I was able to embed the images in the KML using an SVG tag in the description, using an image tag inside that, and putting the image data in a data: URL. Documenting that here in case anyone runs into similar issues.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 16:38:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1009782#M722</guid>
      <dc:creator>andrewowenlinquest</dc:creator>
      <dc:date>2020-12-15T16:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot load images in KML Descriptions?</title>
      <link>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1010076#M723</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/429758"&gt;@andrewowenlinquest&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the question. I'm glad you found a solution.&lt;/P&gt;&lt;P&gt;1) Is there a way to access images in KML descriptions that will use the authentication prompted by the server?&lt;/P&gt;&lt;P&gt;Which version of ArcGIS Earth did you use? Please try with the latest version 1.11.&lt;/P&gt;&lt;P&gt;2) Is there a general means of debugging how ArcGIS deals with failure to load resources?&lt;/P&gt;&lt;P&gt;We will consider providing developer tools in the next release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Yongwei&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 07:23:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1010076#M723</guid>
      <dc:creator>YongweiKang</dc:creator>
      <dc:date>2020-12-16T07:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot load images in KML Descriptions?</title>
      <link>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1010078#M724</link>
      <description>&lt;P&gt;I'm using ArcGIS Earth 1.11 Build 2902, built on 9/21/2020. I downloaded it last week.&amp;nbsp;&lt;/P&gt;&lt;P&gt;While I'm thinking about it: I think the HTML descriptions in KML placemarks use a different HTTP client/setup than the one that does KML network links. Or, at a minimum, selecting an HTTPS client certificate doesn't seem to propagate for requests made on behalf of the HTML client. I've observed similar behavior for Images behind HTTP Basic Auth, where I don't have an opportunity to provide credentials to placemark image requests.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 07:34:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1010078#M724</guid>
      <dc:creator>andrewowenlinquest</dc:creator>
      <dc:date>2020-12-16T07:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot load images in KML Descriptions?</title>
      <link>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1010465#M725</link>
      <description>&lt;P&gt;Yes, the process of the HTTP request in the HTML description and the&amp;nbsp;request in the KML network links are different. The&amp;nbsp;requests in the HTML description are processed by Popup (Embed Web Browser), and the&amp;nbsp;&lt;SPAN&gt;client certificate&amp;nbsp;didn't pass to the Popup.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And I want to know what authentication type is the image request in the HTML description?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide a test KML for us?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yongwei&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 01:36:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1010465#M725</guid>
      <dc:creator>YongweiKang</dc:creator>
      <dc:date>2020-12-17T01:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot load images in KML Descriptions?</title>
      <link>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1010467#M726</link>
      <description>&lt;P&gt;Could you help provide a sample to explain your workaround?&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 01:45:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1010467#M726</guid>
      <dc:creator>YongweiKang</dc:creator>
      <dc:date>2020-12-17T01:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot load images in KML Descriptions?</title>
      <link>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1010849#M727</link>
      <description>&lt;P&gt;YongweiKang,&lt;BR /&gt;&lt;BR /&gt;Below is an example of how it'd look. The base64 data would need to be for a valid PNG image&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;kml xmlns="http://www.opengis.net/kml/2.2"&amp;gt;
  &amp;lt;Document id="ExampleDocument"&amp;gt;
    &amp;lt;name&amp;gt;Example KML Document&amp;lt;/name&amp;gt;
    &amp;lt;snippet&amp;gt;&amp;lt;/snippet&amp;gt;
    &amp;lt;description&amp;gt;&amp;lt;![CDATA[ Example description ]]&amp;gt;&amp;lt;/description&amp;gt;
    &amp;lt;Placemark id="ExamplePlacemark"&amp;gt;
      &amp;lt;name&amp;gt;GPS Accuracy Prediction&amp;lt;/name&amp;gt;
      &amp;lt;snippet&amp;gt;&amp;lt;/snippet&amp;gt;
      &amp;lt;description&amp;gt;&amp;lt;![CDATA[
        &amp;lt;svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="480" width="640" &amp;gt;
          &amp;lt;image xlink:href="data&amp;amp;colon;image/png;base64,base64datahere==" /&amp;gt;
        &amp;lt;/svg&amp;gt;
          ]]&amp;gt;&amp;lt;/description&amp;gt;
    &amp;lt;/Placemark&amp;gt;
  &amp;lt;/Document&amp;gt;
&amp;lt;/kml&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Dec 2020 04:16:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1010849#M727</guid>
      <dc:creator>andrewowenlinquest</dc:creator>
      <dc:date>2020-12-18T04:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot load images in KML Descriptions?</title>
      <link>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1010850#M728</link>
      <description>&lt;P&gt;Well, it's not just a test KML, it's also that a description in the KML references images that are behind auth.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication#Basic_authentication_scheme" target="_self"&gt;HTTP Basic Auth&lt;/A&gt; is enough to stop the images from loading in the Popup. I've also seen&amp;nbsp;&lt;A href="https://techcommunity.microsoft.com/t5/iis-support-blog/client-certificate-authentication-part-1/ba-p/324623" target="_self"&gt;HTTPS Client Certificate Authentication&lt;/A&gt;&amp;nbsp;fail to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't provide a test KML to demonstrate the problem, because the problem is in the interaction between KML and a server, and the code I'm working with that led to me figuring this out is proprietary, and I don't currently have time to write an example server that demonstrates the problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 04:27:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1010850#M728</guid>
      <dc:creator>andrewowenlinquest</dc:creator>
      <dc:date>2020-12-18T04:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot load images in KML Descriptions?</title>
      <link>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1010872#M729</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/429758"&gt;@andrewowenlinquest&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your detailed feedback, it is enough for us to locate this issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Yongwei&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 09:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-earth-questions/cannot-load-images-in-kml-descriptions/m-p/1010872#M729</guid>
      <dc:creator>YongweiKang</dc:creator>
      <dc:date>2020-12-18T09:49:55Z</dc:date>
    </item>
  </channel>
</rss>

