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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -