Try to update the fields CanLiteConfigPACP, CanLiteConfigMACP, QCardConfigMACP or QCardConfigPACP of the feature here https://services6.arcgis.com/iLx36dZM4ZchIav8/ArcGIS/rest/services/SAM_20231221/FeatureServer/4
To answer your questions:
byte[] byteValue = System.Text.Encoding.UTF8.GetBytes(stringValue);
myFeature.SetAttributeValue("QCardConfigPACP", byteValue);
Then I get
System.NotSupportedException
The data type System.Byte[] is not supported.
at Esri.ArcGISRuntime.Data.CoreElementExtensions.SetAttributeValue(CoreElement element, Object value)
at Esri.ArcGISRuntime.Internal.AttributeDictionary.set_Item(String key, Object value)
- Esri.ArcGISRuntime 200.2.0
- .Net 6
I can easily update the field using the web UI and passing a base64 string. Using the SDK, I can then read the value this way:
string base64String = System.Text.Encoding.Default.GetString(((IList<byte>)(Feature.GetAttributeValue("QCardConfigPACP"))).ToArray());
byte[] bytes = Convert.FromBase64String(base64String);
return System.Text.Encoding.UTF8.GetString(bytes);
But I can't write the attribute value.
Please help