title: writing Jpeg 2000 images in java
body: <p>I am trying to encode (write) jpeg 2000 in Java. I am reading a '.bmp' image and try to write '.jp2' image. I am using: </p>
  
  <pre><code>javax.imageio.ImageIO.write(img1, "jpeg 2000", file1);
  </code></pre>
  
  <p>I do not receive any error, but the size of the produced image is zero. Can anybody help me please? </p>
  
  <p>Thanks a lot in advance.</p>