title: How an image get converted by base64 algorithm?
body: <p>After I read in <strong><a href="https://en.wikipedia.org/wiki/Base64" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Base64</a></strong> about how the word <code>Man</code> gets converted into <code>TWFu</code> by using the <strong>base64 algorithm</strong>, I was wondering how an image get converted by the same algorithm, after all this conversion takes bytes ,divide them into groups of 6 and then looking for their ASCII value.</p>
  
  <p>My question is, how an image becomes a base64-encoded string?
  I want an answer that describes the flow from when we save the image in our computer until it becomes a base64-string.</p>
  
  <p>Terms that I hope will be explained in the answer are:
  <strong>pixels/dpi/ppi/1bit/8bit/24bit/Mime</strong>.</p>