title: Difference between basic and url base64 encoding in Java 8
body: <p>The Java 8 <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Base64.html" rel="nofollow noreferrer">Base64</a> library has two variants that can be used in URI building: the &quot;Basic&quot; one and the &quot;URL and Filename safe&quot;. The documentation points to <a href="https://www.rfc-editor.org/rfc/rfc4648" rel="nofollow noreferrer">RFC 4648</a> Table 2 as an explanation for the differences.</p>
  <p>After reading the spec it still isn't clear to me what the practical difference is between both encodings: are both standards &quot;widely&quot; supported? What about browsers specifically? Is the URL and filename safe encoding recommended for data URI encoding? Are there known support limitations?</p>