Tutorials‎ > ‎C# Tutorials‎ > ‎

DevExpress XPO Data Model Image Field

posted Feb 15, 2016, 6:46 AM by Tim Key
I am using the Data Model Xpo Data Model Designer, I need to store images in the Database, what is the field type for this case?


To accomplish this task, create a property of the ByteArray type and apply the [DevExpress.Xpo.ValueConverter(typeof(DevExpress.Xpo.Metadata.ImageValueConverter))] attribute to it via the designer's Custom Attributes property.

See Also:
ImageValueConverter Class

Original Source