Compress/uncompress LZMA strings in Java -



Compress/uncompress LZMA strings in Java -

on client side, have lzma-js compressing plain text , sending server string. far, lzma java implementations i've found takes file or inputstream argument. there implementation uses string straight input or should write inputstream string wrapper around info goten client?

just wrap string in inputstream:

inputstream stream = new bytearrayinputstream( lzmastring.getbytes(standardcharsets.utf_8) );

now can utilize string source inputstream library wants consume.

java string lzma

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -