I have an application where I get a report from database, make changes in my application and saving the compressed report back to database. If I want to open the report again I get it from database and un-compress it and export it to a file.
The issue I have is, when working with the report I use Aspose words Document to keep track of the changes and finally save it. In some cases when I convert the report data stream to Aspose.Words Document and save it, the size of the file is increases exponentially. So when i save this report (after compressing) to the database I am storing the large size file data. This becomes a problem when I try to uncompress the report data, I get insufficient buffer size error.
Whey is the size of the file increasing only in certain cases. How can I prevent this so that I do not have any problem with compressing and uncompressing the data.
I created a sample project with steps that cause the uncompress to fail. I included 2 files in the project, 1 with small size increase and other with exponential size increase.
The sample project can be found
Please advise the best approach for resolving this issue.