The DevExpress XAF implementation of the default FileData
type compresses the stream (Gzip) before saving it. You will not be able to read the contents without decompressing the stream first. You can use CompressionUtils.Decompress()
which is in the DevExpress.Persistent.Base assembly.
Alternatively you could implement your own version of FileData
and change this behaviour. Look at the source (or use a decompiler) and remove the [ValueConverter(typeof(CompressionConverter))]
attribute from the Content
property.