Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to encode a file into android base64. Android's sdk has a utility method that does this. I should be able to avoid doing any Android programming to solve this. There are utilities for windows that can do this as well.

For my Mac, I've tried using the base64 shell command from fourmilab.ch

It is not giving me usable results, and it inserts spaces and newlines. Also the output files seem to have far too few characters.

Also, the library method in the Android sdk and the windows utility have an optional offset for the base64 which it would be nice to be able to use.

share|improve this question

You must log in to answer this question.

Browse other questions tagged .