title: Reading RAW DNG files in android
body: <p>I am using the new Camera 2 API, specifically referring to Camera2Raw example provided by google to save my image as a DNG file. However, I do want to read this DNG file and process it in the next activity.</p>
  
  <p>From what I have read online, We don't have any direct method to read the file. My approach was to use the Exif data using ExifInterface class to get the width and the height and then use the stream of data as the input and make an encoder for the RAW image. </p>
  
  <p>However, the ExifData was null for the DNG file. Does android set the data or do I need to do anything different at the CaptureRequest? The JPEG encoded image for the same had a lot of information. </p>
  
  <p>How do I got about ensuring that the metadata for the DNG image is complete? Thanks. And is there an easier way to read the DNG file?</p>