java - Send file contents between classes using file & object streams without using String in this process -


i doing project in java in eclipse ga 3.4.2 . have upload file , encrypt file content in 1 class , send encrypted file contents other class. occur have copied encrypted contents string object , send other class , store database. here, have encounterred problem when encrypted content stored in string object, object not able recognize of encrypted characters in content, 'm able recognize syso stmts. so, in process of download, when retrieve content database , try decrypt it, doesn't matche original file content.

so, please give solution without using string object in process , whether filecontents transferred without using string object format between classes?

you can use base64 encode/decoding (which involves byte[] ). quick search find question answers.

base64 encoding in java


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -