title: How to make jpeg lossless in java?
body: <p>Is there someone that can tell me how to write 'jpeg' file using <code>lossless</code> compression in java?</p>
  
  <p>I read the bytes using the code below to edit the bytes </p>
  
  <pre><code>WritableRaster raster = image.getRaster();
  DataBufferByte buffer = (DataBufferByte) raster.getDataBuffer();
  </code></pre>
  
  <p>And I need to write again the bytes as 'jpeg' file without compressing in <code>lossy</code>.</p>