Using the arcgis REST api (http://resources.arcgis.com/en/help/rest/apiref/) using the addFeatures link http://example.com//arcgis/rest/services/name/name/FeatureServer/0/addFeatures how do you add a blob. We've tried the following,
[
{
"geometry" : {"x" : -118.15, "y" : 33.80}, "attributes" : {
"name" : "Joe Smith",
"title" : "Test",
"descr": "324DFIOWNF83294"
}
}
]
does not work (error being Unable to complete operation, "Setting of value for descr failed.") however
[
{
"geometry" : {"x" : -118.15, "y" : 33.80}, "attributes" : {
"name" : "Joe Smith",
"title" : "Test",
"descr": null
}
}
]
edit Base64:
I also tried the following base64 version as Vince suggested
VGhpcyBpcyB0ZXh0IGVuY29kZWQgaW4gYmFzZTY0Lg==
being
This is text encoded in base64.
with the following,
[
{
"geometry" : {"x" : -118.15, "y" : 33.80}, "attributes" : {
"name" : "Joe Smith",
"title" : "Test",
"descr": "VGhpcyBpcyB0ZXh0IGVuY29kZWQgaW4gYmFzZTY0Lg=="
}
}
]
doesn't work.
What encoding does ArcGIS's REST service expect the blob to be in.
The field types are
name - esriFieldTypeString
title - esriFieldTypeString
descr - esriFieldTypeBlob
Specifically descr is,
descr ( type: esriFieldTypeBlob , alias: desc , editable: true , nullable: true )
ArcGIS Server version is 10.3.1