title: How To Convert A Bitmap Image To Uri
body: <p>I have not found the answer to this question anywhere.</p>
  
  <p>The Bitmap Image is processed in The application, meaning there is no File path to get the Image.</p>
  
  <p>Below is how to convert a Uri to Bitmap</p>
  
  <pre><code> if (requestCode == RC_PHOTO_PICKER &amp;&amp; resultCode == RESULT_OK) {
          Uri selectedImageUri = data.getData();
  
          imageview.setImageURI(selectedImageUri);
  
          try {
              bitmap1 = MediaStore.Images.Media.getBitmap(this.getContentResolver(), selectedImageUri);
          } catch (IOException e) {
              e.printStackTrace();
              Toast.makeText(this, "" + e, Toast.LENGTH_SHORT).show();
          }
  
          bitmap1.compress(Bitmap.CompressFormat.JPEG, 7, bytearrayoutputstream);
  
          BYTE = bytearrayoutputstream.toByteArray();
  
          bitmap2 = BitmapFactory.decodeByteArray(BYTE, 0, BYTE.length);
  
          imagetoo.setImageBitmap(bitmap2);
      }
  </code></pre>
  
  <p>How do I now reconvert to a Uri</p>