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

go - serving up pdfs using golang -

python - Best design pattern for collection of objects -

r - Using `bbmle:mle2` with vector parameters (already works using `optim`) -