6

Here is the solution I found, I don't know if it's the best (it would be nice to capture symbology as well), but it does work and is straightforward. It's possible to grab a feature service and attachments and relationship class all in go from the server itself in a file-gdb. Esri has updated the export tools. There are now two official routes that I'm aware ...


6

You were very close! This was quite tricky actually as the ArcGIS REST API documentation didn't explain much. According to the requests docs, you can explicitly set the content headers. This worked for me: import requests import os token = 'K6ZZZsf0Xtf...........PLNffN03fWcA..' url = 'http://yourserver/arcgis/rest/services/FRLK/FS_TESTING/FeatureServer/...


5

In theory, there are no limits, except those of the operating system. The 600-700mb threshold is likely due to the heap size of a 32-bit application (two copies of the object being saved are needed, so 1gb is out of the realm of possibility). I wouldn't ever store more than 20-25mb in a LOB type, just because it is so stunningly inefficient. It's far ...


4

http://support.esri.com/em/knowledgebase/techarticles/detail/41763 For ArcGIS 10.1+ from arcpy import da import os inTable = arcpy.GetParameterAsText(0) fileLocation = arcpy.GetParameterAsText(1) with da.SearchCursor(inTable,['DATA','ATT_NAME']) as cursor: for row in cursor: binaryRep = row[0] fileName = row[1] # save to disk ...


4

You can enable attachments with both ArcGis 10 & 10.1 : With 10.0, you have to open ArcCatalog, right-click the feature class to which you want to add attachments, point to Attachments, then click Create Attachments. With 10.1, you can do this via ArcCatalog, like explained previously OR via the "Enable Attachments" tool. Regarding the licences levels :...


4

Attachments can be enabled only on feature classes stored within a geodatabase (this can be any type of geodatabase - personal, file, or enterprise). You cannot attach your files to a shapefile because there is no container the data can be stored in. To convert your shapefile to a geodatabase, you can use a GP tool Feature Class To Feature Class (Conversion)...


4

You can accomplish this through the REST API. You can add attachments "in bulk" if you set up a Python dictionary where the key is OID and the value is a path to the attachment. Here is how to do it: clone restapi from GitHub (version 1.0 branch, not 100% complete, but attachments are supported here) get a dictionary with {OID: PATH, ...} for the ...


3

The issue was a combination of me copying the wrong snippet of code and not fully reading the docs that I had referenced in my question! The Boolean parameter ("Info Only") of these methods determines which properties of the returned attachments will be populated. I had copied: IEnumAttachment enumAttachment = attachmentManager....


3

I've attached an image showing what you need to do for the first step. Namely, turn the Shapefile into a Featureclass. A Featureclass can only reside inside a Geodatabase (aka GDB). Alternately you can create a GDB and import your Shapefile into it by R-click, etc. See this image below. As Alex Tereshenkov said - You can only enable attachments to a ...


3

I put a solution together by relying heavily on code given in the ESRI forum post mentioned above, as well as code written using the pexif library. import arcpy import os import pexif fc = "C:\Mygdb.gdb\fc" tbl = "C:\Mygdb.gdb\fc__ATTACH" field_list = ["DATA", "ATT_NAME", "REL_OBJECTID"] outFolder = "C:\test" with arcpy.da.SearchCursor(tbl, field_list) as ...


3

I tried it with a file geodatabase by opening the attachment table then joining it to the feature layer that had the attachments: Layer with attachments called ws, table in geodatabase called ws_attach joined using rel_objectid from ws_attach to the objectid in the ws feature class


3

Exporting GDB to XML (by right clicking on GDB> Export to XML) can perfectly export features+attachments. Moreover, if you are looking for a more automated approach, ArcGIS 10.1 features a new toolbox for XML export. You can import XML into new GDBs or directly access all its data by parsing it for other applications.


3

I have assumed following: For your feature-classes in mdb, "_ATTACH" suffix is used for only attachment table. You can further customize this code. This code needs to be run after all featureclasses (except attachment tables- this script will create attachment table and load relationship classes from the respective table from the mdb into gdb) are moved ...


3

In ArcGIS Desktop, you can access them via the Identify window:


3

To create a filename based on a field value in your feature class (rather than in the attachment table which your script is based on) you will need to get a dictionary of ObjectID and associated value from your specified field in your feature class, then another dictionary to count usage (as the values are used and files output). I've based the increments ...


3

You document path is clickable if you use the action tool. If you press the Add default action button, you get a sample of action. Try the Open file action where PATH is the column name of the field containing the path.


2

I have not tried next methods, so just my thoughts about it: If you are convenient with ArcGIS .NET API you can use C# to export blobs to files. Take a look at this snippet. Also may be you can try to export attachment table to Personal GDB and then try to export blobs there. Same way you can export to SDE table and use you DBMS (sql?) to perform it.


2

On the Enabling Attachments help page it says: When you enable attachments, ArcGIS creates a new table to contain the attachment files and a new relationship class to relate the features to the attached files. Consequently, you are able to use that relationship class to determine which features are present, and they will be only those with ...


2

As mentioned in our Comments, your best option appears to be to investigate HTML Popups. If that does not meet your requirements perhaps edit your Question to further refine them by describing why not. As an aside, and you are probably already aware of this, a Basic license allows you to view geodatabase attachments, but does not allow you to create them ...


2

I have never done this using the .NET SDK, but I have used this python script in the past: import arcpy, os, sys arcpy.env.overwriteOutput = True def extract_attachments(out_ws, table, blob_field, filename_fld): ''' Code adopted from "Another GIS Blog" http://anothergisblog.blogspot.nl/2012/06/working-with-blob-data-at-101-arcpyda.html ...


2

I don't think you can enable attachments more than once per feature class. The easiest way would be to have different feature classes for which attachments you want visible through the feature service.


2

Three things to check when you cannot see the Attachments (paper clip) icon in the Attributes window are: That you are using a Standard or Advanced level license - you cannot add/edit/delete attachments with a Basic license That you have started editing That you have the attributes of the correct layer active within your Attributes window


2

As far as I'm aware, you are correct in that you cannot setup up domains in AGOL. However, you are along the correct path in that you can create your domains in ArcGIS for Desktop as usual then publish it to AGOL where your field workers will be able to see the drop down box in their app using Collector. I'm not sure about the photo attachments portion, ...


2

It fails either because it can't find the popupTemplate in your feature layer. so you have to init the popupTemplate this way : layer.popupTemplate = {content: [{type: "attachments"}]}; or because of the typo in your content. You have written tpye instead of type


2

According to Esri github community issue page, they have provided a way to do this: Once submitted, photos will be stored as geodatabase attachments, which can be deleted from the ArcGIS Online Map Viewer and ArcGIS Pro Also, to add to this response, Esri on it's survey123 help page or update survey, does mention Can I modify an existing survey? ...


2

Here is the source code for a script tool (but you can also run it as is without creating a custom script tool). I've added some comments to make it easier for you to follow. The basic idea is that you can specify the field which you would like to use to name each output attachment. If you would like to name your output attachment using multiple fields, ...


2

I am not aware of any way to do this, and a search of ArcGIS Ideas did not reveal anyone having already asked for it to be implemented. Consequently, I think that you should post a new ArcGIS Idea.


2

No, shapefiles cannot have attachments. However, you could explore using the hyperlinks functionality if the images are stored in a location with a URL.


2

I figured out what I was doing wrong, so I'm answering with some screenshots to assist those who are like myself: fat fingered and digitally uncoordinated. First, you need to be editing the feature (that wasn't my issue but it bears repeating). On the attachment, short tap the text of the attachment. Not the image because each has its own behavior. When ...


2

List of allowed file types is published at the end of this ArcGIS online help page: https://doc.arcgis.com/en/arcgis-online/manage-data/work-with-tables.htm. It says: The following file formats are supported as attachments: 7Z, AIF, AVI, BMP, DOC, DOCX, DOT, ECW, EMF, EPA, GIF, GML, GTAR, GZ, IMG, J2K, JP2, JPC, JPE, JPEG, JPF, JPG, JSON, MDB, MID, ...


Only top voted, non community-wiki answers of a minimum length are eligible