title: Decode a Base64 String from JSONArray to Byte list in JAVA
body: <p><strong>I have a JSONArray that contains image files in Base64 format.</strong></p>
  <p><strong>I would like to decode the images in Byte list.</strong></p>
  <p>My json array format:</p>
  <pre><code>jsonarray:[{&quot;manchine_image&quot;:{&quot;image_file&quot;:&quot;VW5pdHlGUw...}
  </code></pre>
  <p>My existing code:</p>
  <pre><code>
   List&lt;String&gt; image = new ArrayList&lt;String&gt;();   
                      for(int i = 0; i &lt; jsonarray.length();i++) {
  
                            JSONObject jsonobject = jsonarray.getJSONObject(i);
                            image.add(new String(jsonobject.toString().getBytes(&quot;image_file&quot;)));
  }
  </code></pre>
  <p>I tried this but i have this error:</p>
  <pre><code>java.io.UnsupportedEncodingException: image_file
  </code></pre>
  <p>Thanks anyway.</p>