[WinRT] Add attachment

668
0
08-04-2014 07:20 AM
AdrienPadol
New Contributor

Hello,

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 ?

Basically, I followed the documentation available online, and I ended up using the following line of code :

var addResult = await table.AddAttachmentAsync(featureID, reservation.PhotoFile);

where "table" is a FeatureTable, and reservation.PhotoFile a StorageFile object representing a picture I just took with my windows 8 tablet.

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.

Is there something I'm missing here ? In what case can this call return null ?

Tags (2)
0 Kudos
0 Replies