I am generating JavaScript file in C#. There is a numeric array to be written in the JavaScript file. The array can sometimes be very large so can anyone suggest a strong compression method to write compressed data using C# and decompress at run-time from JavaScript. Currently I am using LZW compression/decompression but it is not sufficient in my case.
Asked
Active
Viewed 423 times
0
-
1You could just enable "static/dynamic content compression" in IIS and let the web server and client handle it for you. – Mark Feb 11 '16 at 11:45
-
2There was http://stackoverflow.com/q/2233062/613130 . You would have to check if it is compatible with `DeflateStream` of .NET – xanatos Feb 11 '16 at 11:46
-
You should know that compression rate depends on content you can not compress any thing at any rate. – nAviD Feb 11 '16 at 12:58