vn*******@gmail.com wrote:
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.
If it is only you who sends data to the server, and not someone else
who is viewing one of your pages, you likely have a few options. Since
I am on broadband, I would not find sending a 5MB uncompressed file to
the server any problem, unless I had to do it dozens of times a day, so
broadband likely is the most simple option, although it might be
difficult to justify the cost if this is the only reason broadband
might be useful to you.
There are many programs available to compress data on your computer,
and some, such as Windows XP have an ordinary .zip program built in.
You can zip just about any combination of files, directories, images,
music etc. At my server, I can go to the control panel and unzip any
files that I have sent it such as zip, gzip, tar, etc. However it
sounds as if you might want the unzip function to be done automatically
at the server so the files can be used for something there. If so, this
likely would require a bit of server side code, perhaps php.