The question is simple:
Can I update a blob field via a Feature Service?
I tried assigning a byte array to the graphic's blob attribute, but it returned an error when applying the edits:
{"error":{"code":400,"message":"Unable to complete operation.","details":["Unable to apply edits"]}}
The server's log shows the following:
INFO3 ApplyEdits has completed. 2012-06-02 08:14:34 17022 0.00988 66844 GraphicFeatureServer.ApplyEdits
INFO3 Error while creating Insert Cursor for Table: BlobTable. 2012-06-02 08:14:34 17002 66844 GraphicFeatureLayer.Add
INFO3 Updated Feature/ Object with ObjectID: 4 in Layer/ Table: BlobTable. 2012-06-02 08:14:34 17002 66844 GraphicFeatureLayer.Update
INFO3 Deleted 0 rows in Layer/ Table: BlobTable. 2012-06-02 08:14:34 17002 66844 GraphicFeatureLayer.DeleteByID
INFO2 ApplyEdits has started. 2012-06-02 08:14:34 17021 66844 GraphicFeatureServer.ApplyEdits
I find odd that it actually breaks in the insert cursor, given that what I sent was a single update.
I know that an alternative is to use attachments, or even a geoprocessing service, but it'd be more practical if I can do it directly.
Thanks,
Orlando