title: Get public download URL from uploaded file in firebase storage with Java rest API
body: <p>I would like to get the download URL from a file (Blob) upload by firebase-admin sdk for java.</p>
  
  <p>My Code:</p>
  
  <pre><code>    FirebaseOptions options = new FirebaseOptions.Builder()
              .setCredentials(GoogleCredentials.fromStream(serviceAccount))
              .setDatabaseUrl("...")
              .build();
  
          FirebaseApp app = FirebaseApp.initializeApp(options);
          StorageClient storage = StorageClient.getInstance(app);
  
          Bucket bucket = storage.bucket("...");
  
          Blob blob = bucket.create(...);
  </code></pre>
  
  <p>so, by this code I am able to upload file in firebase storage.
  But I dont know how to get the download URL..
  I want to get the URL (<a href="https://firebasestorage.googleapis.com.." rel="nofollow noreferrer">https://firebasestorage.googleapis.com..</a>.)</p>
  
  <p>But the method blob.getMediaLink()
  returns me the URL (<a href="https://www.googleapis.com/download/storage.." rel="nofollow noreferrer">https://www.googleapis.com/download/storage..</a>.) which is private</p>