title: converting from Jpeg 2000 to DICOM using DCMTK
body: <p>I am tring to convert a DICOM with  JPEG 2000 Transfer Syntax to regular DICOM file (Explicit Little Endian, or Implicit Little Endian).</p>
  
  <p>I was able to read pixels from DICOM / JPEG 2000 file into a buffer, but I am now stuck on to create JPEG 2000 dicom file using DCMTK library.</p>
  
  <p>This is what i have to tried so far.</p>
  
  <pre><code>OFCondition isrep = datas-&gt;chooseRepresentation(EXS_JPEG2000, NULL);
  
  if(datas-&gt;canWriteXfer(EXS_JPEG2000,orxfer))
  {
  OFCondition  issaved = fileformat.saveFile("d:\\test.dcm", EXS_JPEG2000, EET_ExplicitLength, EGL_recalcGL,
                         EPD_noChange, OFstatic_cast(Uint32, 0), OFstatic_cast(Uint32, 0), EWM_updateMeta);
  }
  </code></pre>
  
  <p>I am getting an error:</p>
  
  <blockquote>
    <p>pixel representation not found</p>
  </blockquote>