Upload and Download Files to Google Cloud Storage using .Net
Вставка
- Опубліковано 8 вер 2024
- In this video I'll show you how to upload and download files to Google Cloud Storage using .Net. In my example I use a Web API, but the concept is the same regardless of what type of .Net project you are using.
Links:
Nuget link for Google Storage Library
www.nuget.org/...
Docs for the Google Storage Library
cloud.google.c...
Docs about Application Credentials
cloud.google.c...
Github repo for code reference:
github.com/Scr...
Follow me on social media!
Twitter: / scriptbytesio
Instagram: / scriptbytes
Threads: scriptbytes
Check out my blog!
scriptbytes.io/
Very good tutorial, straight to the point. Thanks.
Perfect!
Great job! I see a lot of useless links but don't see useful link on the github for this example. Where's the link?
I pushed the code to Github and added a link in the video description.
@@scriptbytes Hi! Great video! It help me a lot, but now I am in the issue of uploading several files... And it doesn't work even if I do the loop in the front
Do you an example of a multipart download/upload? We are currently attempting do this where we can allow pausing and resuming the uploads as well but are struggling
I haven't done a multi-part download. I know they have docs on how to do it, but I haven't tried it yet.
How would you go about using authenticated user in a website environment to add permission to view a link within the google cloud when you are getting this message This XML file does not appear to have any style information associated with it. The document tree is shown below.
AccessDenied
Access denied.
Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object. Permission 'storage.objects.get' denied on resource (or it may not exist).
I think you mean how to allow users on your site to view objects stored in a private bucket? If so, you'll want to look into a GET SignedUrl in the GCS bucket.
@@scriptbytes thank for the tip, it really helped with the problem, I have been struggling with for 2 days and now I can finish development of the system
How much time will it take to upload in bucket ?
I’ve never done any benchmarks but I’ve never had issues with the speeds.