title: Images Quality Loss During Upload
body: <p>How do i resolve the quality issues which arise when i use this?. (Please note that adding the values on the createScaledBitmap is not an option since it makes upload very slow)</p>
  
  <pre><code>private String getStringImage(Bitmap bitmap) {
          ByteArrayOutputStream baos = new ByteArrayOutputStream();
          bitmap = Bitmap.createScaledBitmap(bitmap1, 320, 320, true);
          bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos);
          byte[] imageBytes = baos.toByteArray();
          return Base64.encodeToString(imageBytes, Base64.DEFAULT);
      }
  </code></pre>