最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Downloading a file in DevExpress XAF (using IFileData) shows file corrupted error - Stack Overflow

programmeradmin6浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论