Skip to main content
.NET Framework 4.5.2+

How to: Persist a BLOB Field

The following code example stores unstructured binary data in the Document property which is of the Byte array type.

public class Attachment: XPObject {
    public string Name {
        get { return fName; }
        set { SetPropertyValue(nameof(Name), ref fName, value); }
    }
    string fName;

    public Person Owner {
        get { return fOwner; }
        set { SetPropertyValue(nameof(Owner), ref fOwner, value); }
    }
    Person fOwner;

    public Byte[] Document;
}
See Also