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/

КОМЕНТАРІ • 12

  • @urnan7499
    @urnan7499 9 місяців тому +1

    Very good tutorial, straight to the point. Thanks.

  • @totto4556
    @totto4556 4 місяці тому

    Perfect!

  • @kamanemo
    @kamanemo 11 місяців тому +1

    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?

    • @scriptbytes
      @scriptbytes  11 місяців тому +1

      I pushed the code to Github and added a link in the video description.

    • @MaiteDiegoDevelopers
      @MaiteDiegoDevelopers Місяць тому

      @@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

  • @deathsride1818
    @deathsride1818 8 місяців тому

    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

    • @scriptbytes
      @scriptbytes  8 місяців тому +1

      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.

  • @tafadzwatapera1820
    @tafadzwatapera1820 Місяць тому

    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).

    • @scriptbytes
      @scriptbytes  Місяць тому

      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.

    • @tafadzwatapera1820
      @tafadzwatapera1820 Місяць тому

      @@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

  • @akashr8512
    @akashr8512 11 місяців тому

    How much time will it take to upload in bucket ?

    • @scriptbytes
      @scriptbytes  11 місяців тому

      I’ve never done any benchmarks but I’ve never had issues with the speeds.