Is it possible to read a binary data field (BLOB) from an Esri geodatabase using OGR? I'm using the OpenFileGDB driver and can extract the first few bytes, but then it truncates the data with "...".
>>> import ogr
>>> src = ogr.Open("data.gdb")
>>> src.GetDriver().name
'OpenFileGDB'
>>> layer = src.GetLayerByName("Photo__ATTACH")
>>> feature = layer.GetFeature(1)
>>> data = feature.GetField("DATA")
>>> len(data)
75
>>> data
'FFD8FFE000104A46494600010100004800480000FFE100584578696600004D4D002A0000...'
I'm not sure if this is a problem with the driver, or if I just need to pass it a particular flag?
FFD8
is the start of a JPEG file in HEX.
The equivalent in ArcGIS-speak is here: http://support.esri.com/technical-article/000011912