title: Compress image using JPEG Lossless and convert the image to Base64Encoded String
body: <p>We have a requirement to compress an image which will be of size around 50 KB - 75 KB within 25KB limit. We were following the example given in <a href="http://examples.javacodegeeks.com/desktop-java/imageio/compress-a-jpeg-file/" rel="nofollow">http://examples.javacodegeeks.com/desktop-java/imageio/compress-a-jpeg-file/</a>. by specifying the quality as 0.1f we are able to reduce the size of the image below 25 KB. But the image looses its quality. </p>
  
  <p>We need your suggestion on: </p>
  
  <ol>
  <li>How we can compress the image to be within 25 KB without any loss on the quality? </li>
  <li>After compressing we are converting the image byte array to Base64Encoded String. After this the string content is exceeding the size limitation of 25KB. How can i control this size as well? </li>
  </ol>
  
  <p>We need your help in resolving this. Please help. </p>