title: how to convert base64 string image to blob in android?
body: <p>I have a Base64 string image .I want to convert it into blob type and save it in database..
  I have </p>
  
  <pre><code>String base64Image="iVBORw0KGgoAAAANSUhEUgAAAGAAAACgCAYAAADzcGmMAAAACSV...";
  </code></pre>
  
  <p>This is what I tried.. </p>
  
  <pre><code> byte[] byteImage=org.apache.commons.codec.binary.Base64.decodeBase64(befImage.getBytes());
  
  json.put("during_unloading_photo", byteImage); 
  </code></pre>
  
  <p>where json is my JSONObject and 
  during_unloading_photo is the column name which is blob type.</p>