title: How to convert blob image into binarybase64 in java?
body: <p>I have image in blob format from DB , i am holding that blob image in byte array and  converting it to Binary Base64 format.</p>
  
  <p>For encoding the blob to binary base 64 I am using below code,</p>
  
  <pre><code> byte[] imageByte = getblob();//from DB
   byte[] encodedImage = Base64.encodeBase64(imageByte);
  </code></pre>
  
  <p>is there any other way to do it or am doing it in right way please help me?</p>