Actually I trying to upload large text and pdf files. I want to press file chunks in browser only. So i can encrypt and send these lite chunk through ajax smoothly without hanging browser. I am seeking help related to file chunk pression. And at server side easily can depress using java library. Can anyone suggest me best way to do it ? It should be in client side and inside browser(IE11,Google Chrome).
Actually I trying to upload large text and pdf files. I want to press file chunks in browser only. So i can encrypt and send these lite chunk through ajax smoothly without hanging browser. I am seeking help related to file chunk pression. And at server side easily can depress using java library. Can anyone suggest me best way to do it ? It should be in client side and inside browser(IE11,Google Chrome).
java
tag?
– Andrew
Commented
Mar 16, 2016 at 17:35
Gzip is a popular method for pressing data before sending it over the web.
There are many javascript libraries, such as https://github./beatgammit/gzip-js which will press a string/byte array for you.
Java has Gzip functionality built-in through java.util.zip.GZIPInputStream;
; a simple google search will make it easy to learn how to use it.
There are several JS libs that can help you with that, if the zip
format is acceptable. JSZip is one of the most well known ones.