开发者

How to compress data on asp.net and uncompress in javascript

开发者 https://www.devze.com 2022-12-21 06:15 出处:网络
Hi this is my first Question :) I need a lib or way to compress a data in asp.net (vb) with the algorit de开发者_如何学Goflate but the result inflate in javascript.

Hi this is my first Question :)

I need a lib or way to compress a data in asp.net (vb) with the algorit de开发者_如何学Goflate but the result inflate in javascript.

I'm use a lib in javascript: deflate.js hxxp://www.codeproject.com/KB/scripting/Javascript_binaryenc.aspx?msg=2904739

First i'm deflate and convert to base64 the result but the result is no compatible with the javascript lib.

i'm use the Chilkat .NET DLL hxxp://www.example-code.com/vbdotnet/deflate_string.asp

The String result with this lib is compatible with the 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 aplication need to download many many data.

P.D.: Sorry for my english :)


Instead of programming your custom solution, couldn't you simply enable HTTP compression on your web server? That way, compression/decompression would be automatically handled by the webserver and browser and your data is sent gzipped over the wire.


Update of my post here is at: http://pastie.org/1588170

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

I use DEFLATE encoder and decoder implementation in Javascript at http://github.com/dankogai/js-deflate

I use Google's V8 Javascript engine ( url ) on server side to run Javascript code which I run on client side in web browser.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号