Reading Image from Attribute Table Field

292
1
Jump to solution
05-23-2012 01:56 AM
AysberqTundra
Occasional Contributor
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.
0 Kudos
1 Solution

Accepted Solutions
AysberqTundra
Occasional Contributor
0 Kudos
1 Reply
AysberqTundra
Occasional Contributor
0 Kudos