AnsweredAssumed Answered

Reading Image from Attribute Table Field

Question asked by Aysberq on May 23, 2012
Latest reply on May 24, 2012 by Aysberq
Hello.

I want to read JPG image from attribute table field and to display it in PictureBox control. The attribute table field type is RASTER.
I found code for BLOB type.

public void ReadPictureFromAttributeTable(IRow m_row)         {                 IFields fields = m_row.Fields;                 int m_BlobFieldIndex = fields.FindField("PHOTO");                 IField field = fields.get_Field(m_BlobFieldIndex);                 if (field.Type == esriFieldType.esriFieldTypeBlob)                 {                     IMemoryBlobStream memoryBlobStream = (IMemoryBlobStream)m_row.get_Value(m_BlobFieldIndex);                     pictureBox1.Image = memoryBlobStream as Image;                 }         }


But I want to get image from RASTER type field.
Can aneone help me?

Thanks.

Outcomes