<?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: How to attach an image to runtime geodatabase? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693012#M8763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the mail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2017 11:03:45 GMT</pubDate>
    <dc:creator>BonyRaju</dc:creator>
    <dc:date>2017-02-07T11:03:45Z</dc:date>
    <item>
      <title>How to attach an image to runtime geodatabase?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693004#M8755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;We are unable to attach an image file to the geodatabase on ArcGIS Runtime SDK for .NET v100(Xamarin). I am sending the code we have worked.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;FeatureQueryResult qfr = await gft.QueryFeaturesAsync(queryParams); &lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feature onerecord = qfr.FirstOrDefault();&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArcGISFeature a = onerecord as ArcGISFeature;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (a.CanEditAttachments)&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.WriteLine("true");&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Byte[] b1;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (var memoryStream = new MemoryStream())&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file.GetStream().CopyTo(memoryStream);&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file.Dispose();&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b1 = memoryStream.ToArray();&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; await a.AddAttachmentAsync(filename, @"image/", b1);&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15px;"&gt;&lt;STRONG&gt;Please see the attached image for the details&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 10:57:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693004#M8755</guid>
      <dc:creator>BonyRaju</dc:creator>
      <dc:date>2017-02-03T10:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach an image to runtime geodatabase?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693005#M8756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that your feature service doesn't support editing. Can you verify that the debug message is written and the feature and the FeatureTable has correct values indicating that the edit can be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; featureTable &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;ServiceFeatureTable&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Uri&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;await&lt;/SPAN&gt; featureTable&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;LoadAsync&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;featureTable&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;IsEditable &lt;SPAN class="operator token"&gt;||&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;featureTable&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;HasAttachments&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;throw&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Exception&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Editing attachments not supported"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; query &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;await&lt;/SPAN&gt; featureTable&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;QueryFeaturesAsync&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;QueryParameters&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; WhereClause &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"1=1"&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; feature &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; query&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;First&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; ArcGISFeature&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CanEditAttachments&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;throw&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Exception&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Cannot edit attachment on this feature"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; fileBytes &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; File&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ReadAllBytes&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;@"C:\Temp\P1050951.JPG"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; attachment &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;await&lt;/SPAN&gt; feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;AddAttachmentAsync&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"test.jpg"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;@"image/"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fileBytes&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:09:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693005#M8756</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2021-12-12T05:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach an image to runtime geodatabase?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693006#M8757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antti, thank you for the comment&lt;/P&gt;&lt;P&gt;Feature service attachment enabled and editable but the debug message is giving value false.Why is it so? How to make the feature editable? I am working with Arcgis runtime SDK for Xamarin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 15:29:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693006#M8757</guid>
      <dc:creator>BonyRaju</dc:creator>
      <dc:date>2017-02-03T15:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach an image to runtime geodatabase?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693007#M8758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might need to load the feature to get the information loaded to it before using the feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; feature &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; query&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;First&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; ArcGISFeature&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;await&lt;/SPAN&gt; feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;LoadAsync&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// load feature to get the metadata&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CanEditAttachments&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;throw&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Exception&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Cannot edit attachment on this feature"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;more stuff&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:09:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693007#M8758</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2021-12-12T05:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach an image to runtime geodatabase?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693008#M8759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We tried your LoadAsync code. 'CanEditAttachments' returns false. How to enable it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Feb 2017 04:43:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693008#M8759</guid>
      <dc:creator>BonyRaju</dc:creator>
      <dc:date>2017-02-04T04:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach an image to runtime geodatabase?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693009#M8760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a doc to &lt;A href="https://doc.arcgis.com/en/arcgis-online/share-maps/manage-hosted-layers.htm"&gt;hosted services&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you have a look into your service and make sure that the your service has `HasAttachements` set to true and you can see `AddAttachement` rest endpoint in the service. You can access the later by investigating existing feature in the service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a example how to access the feature endpoint&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Rest endpoint for feature 5802" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/315790_Capture.PNG" style="width: 620px; height: 231px;" /&gt;&lt;/P&gt;&lt;P&gt;Are you using hosted feature services or are they published through ArcGIS Server?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 09:32:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693009#M8760</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2017-02-06T09:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach an image to runtime geodatabase?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693010#M8761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HasAttachment is set to true and also able to fetch attached image from feature service from ArcGIS online. We are using hosted feature service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can we&amp;nbsp;enable CanEditAttachments?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 10:54:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693010#M8761</guid>
      <dc:creator>BonyRaju</dc:creator>
      <dc:date>2017-02-06T10:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach an image to runtime geodatabase?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693011#M8762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share your service definition in whole? You can send it to my mail &lt;A href="mailto:akajanus@esri.com"&gt;akajanus@esri.com&lt;/A&gt;. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 12:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693011#M8762</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2017-02-06T12:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach an image to runtime geodatabase?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693012#M8763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the mail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 11:03:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/693012#M8763</guid>
      <dc:creator>BonyRaju</dc:creator>
      <dc:date>2017-02-07T11:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach an image to runtime geodatabase?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/1103716#M10499</link>
      <description>&lt;P&gt;Did you identify why CanEditAttachments was returning false to you?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 20:10:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-attach-an-image-to-runtime-geodatabase/m-p/1103716#M10499</guid>
      <dc:creator>PhilipThompson11</dc:creator>
      <dc:date>2021-09-30T20:10:25Z</dc:date>
    </item>
  </channel>
</rss>

