I have a database with an field type of image. EntitySpaces defines this column as esSystemType.ByteArray (please see below). How is the best way to cast this after retrieving it from a query?
public esQueryItem ImageSmallBlob
{
get
{
return new esQueryItem(this, CategoryMetadata.ColumnNames.ImageSmallBlob, esSystemType.ByteArray);
}
}
//Does not work
byte[] byteImage = (byte[])categoryCollection.Query.ImageSmallBlob
byte[] byteImage = categoryCollection.Query.ImageSmallBlob.Cast(??????)