

Public Class Feature Inherits Row Implements System.IDisposable
public class Feature : Row, System.IDisposable
{
// Must be called within QueuedTask.Run
void ReadBlobField(Table table, QueryFilter queryFilter, string blobFieldName)
{
const string imageFileBaseName = "C:\\path\\to\\image\\directory\\Image";
// For each row that satisfies the search criteria, write the blob field out to an image file
using (RowCursor rowCursor = table.Search(queryFilter))
{
int fileCount = 0;
while (rowCursor.MoveNext())
{
using (Row row = rowCursor.Current)
{
// Read the blob field into a MemoryStream
MemoryStream memoryStream = row[blobFieldName] as MemoryStream;
// Create a file
using (FileStream outputFile = new FileStream(imageFileBaseName + fileCount.ToString(),
FileMode.Create, FileAccess.Write))
{
// Write the MemoryStream into the file
memoryStream.WriteTo(outputFile);
}
}
}
}
}
}
System.Object
ArcGIS.Core.CoreObjectsBase
ArcGIS.Core.Data.Row
ArcGIS.Core.Data.Feature
ArcGIS.Core.Data.Mapping.AnnotationFeature
ArcGIS.Core.Data.Mapping.CatalogDatasetFeature
ArcGIS.Core.Data.Mapping.DimensionFeature
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)