title: How can I convert an image into a Base64 string?
body: <p>What is the code to transform an image (maximum of 200&nbsp;KB) into a Base64 String?</p>
  
  <p>I need to know how to do it with Android, because I have to add the functionality to upload images to a remote server in my main app, putting them into a row of the database, as a string.</p>
  
  <p>I am searching in Google and in Stack Overflow, but I could not find easy examples that I can afford and also I find some examples, but they are not talking about to transform into a String. Then I need to transform into a string to upload by JSON to my remote server.</p>