title: Java-MySQL-Android: bad base-64
body: <p>I guess this is a stupid question with an obvious solution, but I don't see it yet. So the problem is: I get an <code>IllegalArgumentException</code> on Android, which says my base64 input is not valid. This input took the following way before:</p>
  
  <p>Upload: PDF file -(Java Base64 encoder) > Java Base64 encoded string -(POST)-> PHP -(INSERT as mediumtext via mysqli query)-> MySQL DB</p>
  
  <p>Download: MySQL record -(SELECT via mysqli query and fetch assoc afterwards)-> PHP vars -(JSON)-> Java as JSON -(Jackson library, maps JSON to object containing String)-> Java Base64 String - (Android Base64 decoder)-> Exception </p>
  
  <p>Is there any failure in my workflow? Communication is done with UTF-8 via <code>HttpUrlConnection</code>.</p>