title: Slowness found when base 64 image select and encode from database
body: <p>I am working in ionic framework. Currently designing a posts page with text and images. User can post there data and image and all are secure.</p>
  
  <p>So, i use base 64 encoding and save the image in database. </p>
  
  <pre><code>encodeURIComponent($scope.image)
  </code></pre>
  
  <p>Each time when user request, i select rows from table and display them along with text and decode them.</p>
  
  <pre><code>decodeURIComponent($scope.image) 
  </code></pre>
  
  <p>with HTML <code>"data:image/jpeg;base64,_______"</code> conversion.</p>
  
  <p>Works fine, but take so much time that i expected. Hence, image are 33% bigger size, and totally looks bulgy.</p>
  
  <p>Then i decide to move on file upload plugin of cordova. But i realize, maintain file in this way is so much risk and complected. I also try to save binary data into database. But failed. </p>
  
  <p>Text selecting without base64 data are dramatically reduce time. If it is possible to select image individually in another http call, after selecting other column and display. Is it a right mechanism to handle secure images?</p>