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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -