<?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 [WinRT] Add attachment in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/winrt-add-attachment/m-p/668232#M7225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I am currently using the "ArcGIS Runtime for Windows Store apps (Beta 2)", version 10.2.3.0, and I want to know if it is possible to add an attachment to a feature table ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Basically, I followed the documentation available online, and I ended up using the following line of code :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; var addResult = await table.AddAttachmentAsync(featureID, reservation.PhotoFile);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;where "table" is a FeatureTable, and reservation.PhotoFile a StorageFile object representing a picture I just took with my windows 8 tablet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The thing is, this specific line of code returns null. "addResult" equals null, where it is supposed to be an instance of AttachmentResult, with possibly an error described in it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Is there something I'm missing here ? In what case can this call return null ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Aug 2014 14:20:49 GMT</pubDate>
    <dc:creator>AdrienPadol</dc:creator>
    <dc:date>2014-08-04T14:20:49Z</dc:date>
    <item>
      <title>[WinRT] Add attachment</title>
      <link>https://community.esri.com/t5/mapping-questions/winrt-add-attachment/m-p/668232#M7225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I am currently using the "ArcGIS Runtime for Windows Store apps (Beta 2)", version 10.2.3.0, and I want to know if it is possible to add an attachment to a feature table ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Basically, I followed the documentation available online, and I ended up using the following line of code :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; var addResult = await table.AddAttachmentAsync(featureID, reservation.PhotoFile);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;where "table" is a FeatureTable, and reservation.PhotoFile a StorageFile object representing a picture I just took with my windows 8 tablet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The thing is, this specific line of code returns null. "addResult" equals null, where it is supposed to be an instance of AttachmentResult, with possibly an error described in it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Is there something I'm missing here ? In what case can this call return null ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 14:20:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/winrt-add-attachment/m-p/668232#M7225</guid>
      <dc:creator>AdrienPadol</dc:creator>
      <dc:date>2014-08-04T14:20:49Z</dc:date>
    </item>
  </channel>
</rss>

