Blog

Extract BLOB Data using Arcobject

Posted by Yogesh Sharma Blogs | ArcObject Dec 03, 2012
Extract BLOB Data Using arcobject.
Extract BLOB Value using arcobject.
     

//Find Blob field Index suppose field index ia 2.

//Get the Blob Field from the Table.
ESRI.ArcGIS.Geodatabase.IFields fields = row.Fields;
ESRI.ArcGIS.Geodatabase.IField field = fields.get_Field(2);

//we also check the type of field 
if (field.Type == ESRI.ArcGIS.Geodatabase.esriFieldType.esriFieldTypeBlob)
{

    ESRI.ArcGIS.esriSystem.IMemoryBlobStream memoryBlobStream =
           (ESRI.ArcGIS.esriSystem.IMemoryBlobStream)pRow.get_Value(pRow.Fields.FindField("pdf"));
    memoryBlobStream.SaveToFile(mapPdfPath + "\\" + cmbMapName.Text + ".pdf");
    Process.Start(mapPdfPath + "\\" + cmbMapName.Text + ".pdf");

    return true;
}
else
{
    //unsuccessful
    return false;
}
COMMENT USING
PREMIUM SPONSORS
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.
Employers - Post Free Jobs
SPONSORED BY
  • MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.
Employers - Post Free Jobs