AnsweredAssumed Answered

Error when pushing Blob to Feature service

Question asked by francisgagne on Sep 13, 2017
Latest reply on Sep 13, 2017 by ANohe-esristaff

I'm trying to create a Feature with an esriFieldTypeBlob but it crashes with an UnsupportedOperationException.

The value of the attribute is a byte array.

The FeatureLayer is a Feature service with the edition and addition enabled.


Map<String, Object> attributesMap = new HashMap<>();
for (Attribute attribute : attributeListAdapter.getAllAttribute()) {
    attributesMap.put(attribute.getName(), attribute.getValue());
final FeatureTable featureTable = featureLayer.getFeatureTable();

//the createFeature cause the exception
feature = featureTable.createFeature(attributesMap, sketch.getGeometry());

FATAL EXCEPTION: main Process: com.cgi.cgis, PID: 20311
java.lang.UnsupportedOperationException: Conversion to CoreElement not implemented: class [B
at com.esri.arcgisruntime.internal.n.g.a(SourceFile:528)
at com.esri.arcgisruntime.internal.n.k$b.a(SourceFile:452)
at com.esri.arcgisruntime.internal.n.k$b.add(SourceFile:399)
at com.esri.arcgisruntime.internal.n.g.a(SourceFile:762)
at com.cgi.cgis.core.edition.manager.EditionManager.createFeature(


If I put anything else in this attribute, I get a mismatch error, and if I put null, the creation runs fine and I can push it to the service.