Java Equivalent code for python's Base64 conversion -


i using python's base64.b64encode() function encode file(txt,mp3 etc) need java equivalent function same.currently using function base64.getencoder().encodetostring(content.getbytes()); encode file in java.the result same in case of txt files(in both java , python) differs in case of mp3 files.

is there encoding method in java obtain same result?if not, other encoding schemes obtain same result in both languages?


Comments

Popular posts from this blog

python - What's the Pythonic way to report nonfatal errors in a parser? -

sql server - Deadlock occuring in Clustered Columnstore index -

angular - Converting AngularJS deffered promise to AngularX observable for JSOM -