I'm using a support project for my main DevExpress XAF web app, in which I'm storing all the files from my local path to the database as byte[]. I convert the file into the byte[] using MemoryStream and compress is using GzipStream (If I don't compress it then I face an error that says Gzip header can not be read when downloading the file from XAF web app). Now, I can download the file but, the file is corrupted? What method should I use to store the file into the database and to open it from the XAF web app. (In XAF web app there is no custom logic to download the file. It is just defaulting methods of the IFileData) ?
Tried MemoryStream to read the bytes from the file and compressed it using GZipStream. Need to overcome the file downloading issue from the XAF web app