Google Answers Logo
View Question
 
Q: Client Side/JavaScript data compression ( No Answer,   2 Comments )
Question  
Subject: Client Side/JavaScript data compression
Category: Computers > Programming
Asked by: svaaps-ga
List Price: $5.00
Posted: 02 Feb 2006 08:13 PST
Expires: 04 Mar 2006 08:13 PST
Question ID: 440491
Need to transfer large data (Appox 5MB in the form of XML & HTML) from
Internet Explorer to Web sphere application server. Want to know if
there is anyway I can compress data (JavaScript or otherwise) before
sending it to the server as it takes a long time to do this operation.
I am currently using xmlhttp. Sample code below.	    		
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
xmlhttp.open("POST",'http://xyz.com',true);
var vSendXML = vMainXMLDOM.xml;//The size of vSendXML is appox 5 MB
xmlhttp.send(vSendXML);

Note: From the server to client I am using GZIP for compression and it
is working pretty good.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Client Side/JavaScript data compression
From: advancedreliablesoft-ga on 07 Feb 2006 23:34 PST
 
If you do it on regular basis you could look for Internet provider
that would give you significantly better 'upload' performance. Some of
them do. Also keeping your XML / HTML markup as short as possible
would descrease the file size and thus the time to transfer.
Subject: Re: Client Side/JavaScript data compression
From: mike76-ga on 09 Feb 2006 16:38 PST
 
One option that comes to mind is that you could use a COM compression
library such as the one from http://www.xceedsoft.com. There are a
couple caveats to this solution. 1) This would only work with IE. 2)
You would have to use client side JScript or VBScript. 3) The COM
library would have to be installed on every client using your app. 4)
You would need to configure the IE security settings on each client
accessing your app to allow access to the COM library. If you have
only one, or just a few clients accessing your app, then this may be a
possible alternative.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy