How to compress data on asp.net and unzip it in javascript

Hi, this is my first question :)

I need a lib or a way to compress data in asp.net (vb) using algorit anti-aliasing, but the result is bloated in javascript.

I use lib in javascript: deflate.js hxxp: //www.codeproject.com/KB/scripting/Javascript_binaryenc.aspx td = 2904739

At first I deflate and convert the result to base64, but the result is not compatible with javascript lib.

I am using Chilkat.NET dll hxxp: //www.example-code.com/vbdotnet/deflate_string.asp

The result of String with this lib is compatible with javascript libray, but is not free.

I need a way to compress data in asp.net and uncompress in javascript. This is for my web application you need to download a lot of data.

PD: Sorry for my English :)

+1
source share
2 answers

Instead of programming your own solution, could you just enable HTTP compression on your web server? Thus, compression / decompression will be automatically processed by the web server and browser, and your data will be transferred by wire.

+1
source

Update my post here: http://pastie.org/1588170

- + - + - + - + - + - + - + - + - + - +

I am using a DEFLATE decoder and a Javascript decoder at http://github.com/dankogai/js-deflate

I am using the server side Javascript engine (url) of Google V8 to run the Javascript code that I run on the client side in a web browser.

0
source

All Articles