Home

Add a comment

 

Avatar: Prabhu

decompress LZString in server side(java)

I am trying to send base64 details from client side(java script) to server(java). In order to reduce the base64 size, I am using lz-string.js as follow: var base64Data = "0dYWVpjZGVmZ2hpanN0dXZ3eHl6g"; var compressed = LZString.compress(base64Data); As you aware Once it compressed by LZ the data will look like follow: enter image description here Hence I am sending the data to server side by following Ajax call: var formData = "img="+compressed"; jQuery.ajax({ url : "/myapplication/Saverequest", type: "POST", data : formData, cache: false, async:false, success: function(data, textStatus, jqXHR) { "); I can able to retrive the data in my action class(java) as it is. But I cant decomplress the the data. I do requrie the same I sent !(refer : base64Data) I did use few code in online regarding LZ (LZString.Java) but it is not decompressing the data!!

decompress LZString in server side(java)


Title
Body
HTML : b, strong, i, em, blockquote, br, p, pre, a href="", ul, ol, li, sub, sup
OpenID Login
Name
E-mail address
Website
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).

Home