如何COM在JavaScript的asp.net和uncom preSS preSS数据 [英] How to compress data on asp.net and uncompress in javascript

查看:138
本文介绍了如何COM在JavaScript的asp.net和uncom preSS preSS数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,这是我的第一个问题:)

Hi this is my first Question :)

我需要用algorit放气PSS在asp.net(VB)的数据一个lib或方式融为一体$ P $,但结果在JavaScript膨胀。

I need a lib or way to compress a data in asp.net (vb) with the algorit deflate but the result inflate in javascript.

我在JavaScript中使用一个lib:deflate.js
hxxp://www.$c$cproject.com/KB/scripting/Javascript_binaryenc.aspx味精= 2904739

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

首先,我放气,并转换为Base64的结果,但结果是使用JavaScript的lib不兼容。

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

我是使用.NET奇尔卡特DLL
hxxp://www.example-$c$c.com/vbdotnet/deflate_string.asp

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

该字符串结果与此lib中是使用JavaScript libray兼容,但不是免费的。

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

我需要一种方法来在asp.net中,并在JavaScript uncom preSS COM preSS的数据。这是我的网络aplication需要下载很多很多的数据。

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.

Pd积:对不起,我的英语:)

P.D.: Sorry for my english :)

推荐答案

而不是编程自定义解决方案,不能你只需启用HTTP COM pression您的Web服务器上?这样,COM pression / DECOM pression将由网络服务器和浏览器被自动处理您的信息发送gzip压缩过线。

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.

这篇关于如何COM在JavaScript的asp.net和uncom preSS preSS数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆