<?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 Attachment- flex mobile add attachment by&amp;nbsp; addAttachment() in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/attachment-flex-mobile-add-attachment-by-nbsp/m-p/536108#M12094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am working with a flex mobile project and trying to add an attachment to a feature layer.&amp;nbsp; I get an error when I try to run the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;signInspectionFeature.addAttachment(selectedSignInspection.attributes["OBJECTID"], bytes, imageUpdateName);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;TypeError: Error #1009: Cannot access a property or method of a null object reference.
 at Function/com.esri.ags.tasks:FeatureLayerTask/addAttachment/com.esri.ags.tasks:onComplete()&lt;C&gt;
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at com.esri.ags.utils::MultipartURLLoader/onComplete()&lt;C&gt;
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at flash.net::URLLoader/onComplete()&lt;/C&gt;&lt;/C&gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked the bytes variable that is a bytes array and it has all the required data (bytes available etc. correct).&amp;nbsp; I don't have access to FeatureLayerTask.as so I do not know what line 529 is looking for.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2014 14:38:55 GMT</pubDate>
    <dc:creator>MikeDahm</dc:creator>
    <dc:date>2014-03-06T14:38:55Z</dc:date>
    <item>
      <title>Attachment- flex mobile add attachment by  addAttachment()</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/attachment-flex-mobile-add-attachment-by-nbsp/m-p/536108#M12094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am working with a flex mobile project and trying to add an attachment to a feature layer.&amp;nbsp; I get an error when I try to run the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;signInspectionFeature.addAttachment(selectedSignInspection.attributes["OBJECTID"], bytes, imageUpdateName);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;TypeError: Error #1009: Cannot access a property or method of a null object reference.
 at Function/com.esri.ags.tasks:FeatureLayerTask/addAttachment/com.esri.ags.tasks:onComplete()&lt;C&gt;
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at com.esri.ags.utils::MultipartURLLoader/onComplete()&lt;C&gt;
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at flash.net::URLLoader/onComplete()&lt;/C&gt;&lt;/C&gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked the bytes variable that is a bytes array and it has all the required data (bytes available etc. correct).&amp;nbsp; I don't have access to FeatureLayerTask.as so I do not know what line 529 is looking for.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 14:38:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/attachment-flex-mobile-add-attachment-by-nbsp/m-p/536108#M12094</guid>
      <dc:creator>MikeDahm</dc:creator>
      <dc:date>2014-03-06T14:38:55Z</dc:date>
    </item>
  </channel>
</rss>

