Compressor No Longer Works – Writes Uncompressed CSV Data

Answered
John W asked 3 days ago

I just upgraded from version 2.7.4 to version 2.7.17.  The compressor no longer compresses the data.  The output looks exactly like a CSV file.  Here’s my code to compress the CSV data before writing it out on the server:

outputStream = Flexmonster.Compressor.Compressor.CompressString(csvData.ToString());
fileStream = File.Create(Server.MapPath("~/CsvData/RevenueCycle.ocsv"));
outputStream.CopyTo(fileStream);
outputStream.Flush();
outputStream.Close();

That code has been working for two years or more.  When I copied the 2.7.4 version of the compressor into my 2.7.14 deployment, it works correctly.
 

1 answer

Public
Ian Sadovy Flexmonster 3 days ago

Hello John,
 
Thank you for the question.
Currently, we are changing the conception of the compressors and your output in the newer version is expected. In case you prefer the old way, you can currently stay on the compressor version 2.7.4 and use it with the latest flexmonster.js version 2.7.14.
 
Please let us know if you have any other questions.
 
Regards,
Ian 

Please login or Register to Submit Answer