title: Save image without compressing
body: <p>in my app, I am taking photo using the camera and I store the image to internal storage but when I retrieve the stored image, the quality of the image is becomes very poor. is there any way to store the actual image without compressing in?</p>
  <pre><code>private fun saveImage(bitmap: Bitmap):Uri{
      val wrapper = ContextWrapper(applicationContext)
      var file = wrapper.getDir(IMAGE_DIRECTORY, Context.MODE_PRIVATE)
      file = File(file, &quot;${UUID.randomUUID()}.png&quot;)
  
      try {
  
          val stream: OutputStream = FileOutputStream(file)
  
          bitmap.compress(Bitmap.CompressFormat.PNG,100, stream)
          stream.flush()
          stream.close()
      }catch (e:IOException)
      {
          e.printStackTrace()
      }
  
      return Uri.parse(file.absolutePath)
  }
  </code></pre>