How to make browsers to compress large form posts before sending them to the server

Dear All,
Is There any way to compress large form posts  in client side (in java script )before sending them to the server i have already used  
rawdeflate.js
   var filesSelected = document.getElementById("fileUploadName");
        if (filesSelected.files && filesSelected.files[0]) {
            var fileReader = new FileReader();
            var fileToLoad = filesSelected[0];
            $("#inflated").val(Base64.btou(RawDeflate.inflate(Base64.fromBase64(fileToLoad))));
        }

Open in new window

but it give me an error  in base64.js "Uncaught Type Error: Cannot read property 'replace' of undefined"
so any idea what the problem or is there any way to do the require with onther way
thanks
wael_shehabAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
Here is one untried, but possible solution:

ASP.NET WebServices two-way (Response and Request) compression - a general solution
http://www.wiktorzychla.com/2009/07/aspnet-webservices-two-way-response-and.html

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.