How to download photos from a hosted feature layer

397
4
Jump to solution
03-08-2022 01:13 PM
ACA
by
New Contributor II

I have a hosted feature layer "TREEINSPECTIONS" that contains a related inspection table and associated photos. The photos are visible through Field Maps.

I have tried downloading the  "TREEINSPECTIONS"  feature layer, which includes the related inspection table but there are no photos included in the download. I am downloading as a FGDB. See image below.

Am I doing something wrong to get the photos?

Thanks

 

0 Kudos
1 Solution

Accepted Solutions
Katherine_Clark
MVP Regular Contributor

You'll need to run a script to extract the BLOB data from the table and create the image files. You can follow this workflow to do that.

https://support.esri.com/en/technical-article/000017450

Best,
Katherine

View solution in original post

4 Replies
Katherine_Clark
MVP Regular Contributor

When you download the fgdb, it should include all layers and tables unless you've specified otherwise with a query. The photo data is stored as BLOB data in the table with _ATTACH

Katherine_Clark_0-1646774191503.png

 

Best,
Katherine
0 Kudos
ACA
by
New Contributor II

Thanks Katherine:

I see the name of the photo in the _ATTACH table but where is the actual photo? I don't see it in the downloaded zip file.

Thanks

0 Kudos
Katherine_Clark
MVP Regular Contributor

You'll need to run a script to extract the BLOB data from the table and create the image files. You can follow this workflow to do that.

https://support.esri.com/en/technical-article/000017450

Best,
Katherine
ACA
by
New Contributor II

Thanks Katherine!

This worked perfectly!

0 Kudos