step-up-labs / firebase-storage-dotnet

C# library for Firebase Storage
MIT License
140 stars 35 forks source link

How can I retrieve the stored files? #20

Closed Nermin-K closed 4 years ago

ghost commented 6 years ago

In the documentation there's a way of getting the download url by awaiting the upload to to complete.

var download_ur = await task;

This will give you the download url which you can then store in an object in the database and use it to download the file later on.

On Sat, 30 Jun 2018, 04:27 Nermin-K, notifications@github.com wrote:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/step-up-labs/firebase-storage-dotnet/issues/20, or mute the thread https://github.com/notifications/unsubscribe-auth/AYqm8kFo1cIxcLGJAj6AEZss18KBspCvks5uBtP6gaJpZM4U9yqq .

ghost commented 6 years ago

Sorry, do not await the task to complete. It should look something like this...

var download_url = task.

Where task is the upload.

I have attached a screenshot.

On Sat, 30 Jun 2018, 07:20 Elisha Misoi, e.kmisoi@gmail.com wrote:

In the documentation there's a way of getting the download url by awaiting the upload to to complete.

var download_ur = await task;

This will give you the download url which you can then store in an object in the database and use it to download the file later on.

On Sat, 30 Jun 2018, 04:27 Nermin-K, notifications@github.com wrote:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/step-up-labs/firebase-storage-dotnet/issues/20, or mute the thread https://github.com/notifications/unsubscribe-auth/AYqm8kFo1cIxcLGJAj6AEZss18KBspCvks5uBtP6gaJpZM4U9yqq .

On 30 Jun 2018 07:20, "Elisha Misoi" e.kmisoi@gmail.com wrote:

In the documentation there's a way of getting the download url by awaiting the upload to to complete.

var download_ur = await task;

This will give you the download url which you can then store in an object in the database and use it to download the file later on.

On Sat, 30 Jun 2018, 04:27 Nermin-K, notifications@github.com wrote:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/step-up-labs/firebase-storage-dotnet/issues/20, or mute the thread https://github.com/notifications/unsubscribe-auth/AYqm8kFo1cIxcLGJAj6AEZss18KBspCvks5uBtP6gaJpZM4U9yqq .

Nermin-K commented 6 years ago

@ElishaMisoi okay. Thanks

Nermin-K commented 6 years ago

sorry @ElishaMisoi but I have to ask the same question but in another way, because it didn't work for me. I want to access those files throw an uri, I don't want to download it. I have to play some audio files using Expo.Audio.Sound.create({uri: path}) so i want this path to be something like this https://www.englishdom.com/staticus/child.mp3 I don't really want to download it. I tried to use the download url with the audio function but it didn't work and I have to use this function. so any help here, please?!

ghost commented 6 years ago

Sorry about that, as for now I don't know of any other solutions. If you do find one let me know.

But I can tell you this, why don't you try using a media player library that accepts media streaming from a url? Most libraries do. Maybe you should check how you can do that with your current player.

Which platform are you developing for? If it's Xamarin you can check out MediaManager plugin.

On Sun, 1 Jul 2018, 02:28 Nermin-K, notifications@github.com wrote:

sorry @ElishaMisoi https://github.com/ElishaMisoi but I have to ask the same question but in another way, because it didn't work for me. I want to access those files throw an uri, I don't want to download it. I have to play some audio files using Expo.Audio.Sound.create({uri: path}) so i want this path to be something like this https://www.englishdom.com/staticus/child.mp3 http://url I don't really want to download it. I tried to use the download url with the audio function but it didn't work and I have to use this function. so any help here, please?!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/step-up-labs/firebase-storage-dotnet/issues/20#issuecomment-401572637, or mute the thread https://github.com/notifications/unsubscribe-auth/AYqm8kiKflBliJ_TXEDKz6s0LfGs9reYks5uCAm6gaJpZM4U9yqq .

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

Closing the issue due to inactivity. Feel free to re-open