ArcSDE 插入Blob类型

ArcEngine里面的esriFieldType. esriFieldTypeBlob字段赋值
strFieldValue是字符串类型的一个值。
byte[] byteArray = System.Text.Encoding.ASCII.GetBytes(pDataSet.Tables[0].Rows[i]["IMGPATH"].ToString());
IMemoryBlobStreamVariant pMem = new MemoryBlobStreamClass();
pMem.ImportFromVariant(byteArray);
IMemoryBlobStream pBlob = pMem as IMemoryBlobStream;
pRow.set_Value(fieldIndex, pBlob);
pRow.Store();

你可能感兴趣的:(blob)