title: FireBase | Google Sign-in | How to get user's google image & download it in android phone
body: <p>I tried following code to get the user's google profile pic, but this is giving only thumbnail size blur photo:</p>
  <pre><code>FirebaseAuth.getInstance().getCurrentUser().getPhotoUrl();
  </code></pre>
  <p>This is giving me uri, which when converted to string shows following URL (URL is showing pic, but due to privacy modified few digits here):</p>
  <p><a href="https://lh3.googleusercontent.com/a-/AguE7mDKNdcXubEW0cMTTYzschAykXcWRQDYeMlHb8rf_g=s96-c" rel="nofollow noreferrer">https://lh3.googleusercontent.com/a-/AguE7mDKNdcXubEW0cMTTYzschAykXcWRQDYeMlHb8rf_g=s96-c</a></p>
  <p>I am able to use this url to show picture in an ImageView using Picasso, but not sure how to download it &amp; store in phone memory.</p>
  <pre><code>Picasso.get().load(FirebaseAuth.getInstance().getCurrentUser().getPhotoUrl().toString()).fit().into(profileImage);
  </code></pre>
  <p>I tried following by converting getPhotoURL into bitmap:</p>
  <pre><code>Bitmap bitmap = MediaStore.Images.Media.getBitmap(SplashActivity.this.getContentResolver(), userPhotoURLUri);
  FileOutputStream fos = new FileOutputStream(pictureFile);
  bitmap.compress(Bitmap.CompressFormat.PNG, 90, fos);
  fos.close();
  </code></pre>
  <p>But this is giving me exception at the very first line:</p>
  <blockquote>
  <p>FileNotFoundException: No content provider: for google getphotouri</p>
  </blockquote>