Getting started with Azure Blob Storage in .NET Core | Azure Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ก.ค. 2024
  • Become a Patreon and get source code access: / nickchapsas
    Check out my courses: dometrain.com
    Hello everybody I'm Nick and in this .NET tutorial I will show you how you can get started with Azure Blob Storage. Blob Storage is one of the most used Azure services and you should definitely know how you can work with it in your C# code. These examples will be done in .NET Core.
    Don't forget to comment, like and subscribe :)
    Social Media:
    Follow me on GitHub: bit.ly/ChapsasGitHub
    Follow me on Twitter: bit.ly/ChapsasTwitter
    Connect on LinkedIn: bit.ly/ChapsasLinkedIn
    #dotnet #azure #blobstorage

ความคิดเห็น • 83

  • @eqwerty610
    @eqwerty610 4 ปีที่แล้ว +1

    Nick, thanks for all the useful content you share with us, I appreciate it.

  • @khwezimngoma
    @khwezimngoma 3 ปีที่แล้ว

    You made it make so much sense, thanks Nick you ROCK!!

  • @alfredorodriguez598
    @alfredorodriguez598 4 ปีที่แล้ว

    Excellent, coincidentally yesterday and today I was investigating about it and you made this video. I hope you delve into the prices, which is what I doubt most. Thanks...

  • @vasylstolyarchuk6226
    @vasylstolyarchuk6226 3 ปีที่แล้ว

    Thank you very much for your efforts to teach us, ordinary people. Thanks)

  • @frankenbeans6930
    @frankenbeans6930 4 ปีที่แล้ว

    Great tutorial! Thanks!

  • @danielarandamartin2709
    @danielarandamartin2709 2 ปีที่แล้ว

    Great Tutorial ! Thank you very much.

  • @pedramfeyz2173
    @pedramfeyz2173 4 ปีที่แล้ว +30

    hope this help if someone is confused like me and can not get the source code
    BlobInfo which used in blobService is a custom class
    class BlobInfo
    {
    public Stream Content { get; set; }
    public string ContentType { get; set; }
    }

    • @gami195
      @gami195 4 ปีที่แล้ว

      Thanks mate, I was super confused too. It is a legit class in the Azure.Storage.Blobs.Models namespace too/

    • @andresbeltran5779
      @andresbeltran5779 3 ปีที่แล้ว

      I´ll gonna try, few days with this error

    • @pawarasiriwardhane7755
      @pawarasiriwardhane7755 3 ปีที่แล้ว

      Thank you very much. You man saved me.

    • @KartikRai-YrIDDCompSciEngg
      @KartikRai-YrIDDCompSciEngg 3 ปีที่แล้ว

      i have made this class in models but still not returning duble parameters, how to make this custom class?

    • @johnykes
      @johnykes 3 ปีที่แล้ว +3

      // + constructor here:
      public BlobInfo(Stream Content, string ContentType)
      {
      this.Content = Content;
      this.ContentType = ContentType;
      }

  • @tylercrane6368
    @tylercrane6368 3 ปีที่แล้ว

    Hey Nick, excellent video dude! So I have never messed around with media content like this before and was wondering once we get the Blob Service up and running, where would be a good place to go and learn a little more about displaying video content with the service we built? Other than that, I subscribed, became a patreon member because I love the content, I thought your video was easy to follow and very robust, and I look forward to more of your videos!

  • @flaviocamello3645
    @flaviocamello3645 3 ปีที่แล้ว

    Thanks! I was problem with Azure Storage!

  • @mrinmoychowdhury4667
    @mrinmoychowdhury4667 10 หลายเดือนก่อน

    Excellent explanation brother ❤

  • @thund3rstruck
    @thund3rstruck 3 ปีที่แล้ว +3

    Great stuff! I'd love to see how you append data to an existing file in Blob storage. We are thinking about perhaps offloading our logging mechanics into blob storage rather than on the file share they are kept today.

    • @rahulsbhatt
      @rahulsbhatt 2 ปีที่แล้ว

      Same, did you find a solution?

  • @arjunrr4923
    @arjunrr4923 4 ปีที่แล้ว +4

    Am to able to find code which mentioned in the description link? How to find it out

  • @cryptowref9818
    @cryptowref9818 3 ปีที่แล้ว

    Great video Nick, could you share an example of how to secure blob service with Azure AD? So the user first has to log in then allowed to get or add blob items to storage?

  • @noahb5019
    @noahb5019 ปีที่แล้ว

    Nick, you're the best.
    That is all.

  • @martinweihrauch2379
    @martinweihrauch2379 4 ปีที่แล้ว

    Great! How would you authenticate with a service principle, so you dont have to expose the key? I want to make an app that is limited to "read only".

  • @delxjj
    @delxjj 2 ปีที่แล้ว +1

    I keep getting a blob container not found error when trying to get a blob and a unsupported media error in Postman when trying to upload a file

  • @lukesanford8528
    @lukesanford8528 3 ปีที่แล้ว

    Loved the video. Very informative! I am having one issue. When doing the await GetBlobAsync, the response I get is "waitingforactivation". Did I miss a step?

  • @LieberLois
    @LieberLois 3 ปีที่แล้ว

    Really good explanation!
    Just one thing: using a filepath for uploading will only work when the User hosts the Backend Server on his Machine!

  • @will44559
    @will44559 2 ปีที่แล้ว

    Just wondering how to write unit test for this, I found sdk stuff kind of tricky to mock. Any advice would be appreciated.

  • @naturelovetimelapse6286
    @naturelovetimelapse6286 2 ปีที่แล้ว +1

    Hi I am getting error at services.AddSingleton(x. It says The best overloaded method for Addsingleton does not have a parameter named x ...i am using .net core 6

  • @brianwells990
    @brianwells990 2 ปีที่แล้ว

    Nick, I've appreciated your videos for a very long time, but this one was so helpful, I couldn't have slept well tonight without becoming a Patreon subscriber of yours.

  • @ShahabLodhi
    @ShahabLodhi 10 หลายเดือนก่อน

    great video thank you, what if we want to scan files for viruses on uploading

  • @ertan1147
    @ertan1147 4 ปีที่แล้ว +1

    Thank you for your useful video again! As you know, azure offers a lot of solutions and I believe that many of developers have concerns regarding prices and performances. For example, there is virtual machine and app service, which is better in which case.. if I have a VM, shall I use storage or not.. What brings me exactly? If you make a video in order to answer that kind of question, it will be very useful. I like this storage option but I cannot say that if it worths or not. I've calculated the price,it says 17 dollars in my case and it is nothing.. but is it really the correct price?

  • @user-lk3xc5mt4n
    @user-lk3xc5mt4n ปีที่แล้ว

    Thank you

  • @rahulsbhatt
    @rahulsbhatt 2 ปีที่แล้ว

    Great video!
    Is there any way to integrate serilog and use append blob in this?

  • @bigandfilthy9199
    @bigandfilthy9199 4 ปีที่แล้ว +1

    Absolute life saver, thank you sooo much. But please upload the source code, I could not find it even after following the steps in the description XD

  • @shashankpandey1019
    @shashankpandey1019 ปีที่แล้ว

    I have a doubt here that if we want to upload file in side a folder and folder is created a runtime so how can we managedl this? There also a chance of subfolder as per my requirement.

  • @Wismat
    @Wismat 2 ปีที่แล้ว

    I am a little bit confussed with this upload using file path. Isn't it only working because client (Postman) and server (.NET Core API) are on the same machine? Otherwise, if they were on separate machines, it would not work, as during the call only filePath and no content is passed to the server. Am I correct?

  • @octavioarruda183
    @octavioarruda183 2 ปีที่แล้ว

    Will the service crashes if it receives null or string.Empty entries?

  • @lerocher
    @lerocher 4 ปีที่แล้ว +3

    hi Nick , I already subscribed but I am not able to get the source code . Could you please explain how to get it ?

  • @igorhenriques931
    @igorhenriques931 3 ปีที่แล้ว +1

    Hey Nick! Great Tuto.
    I was wondering... How can I download files with conditionals?
    I need to download all files between two dates and I only managed to do it by listing all blobs in the container and then working with the string of file names to extract data and force the conditionals by there. Any tips to it better?

    • @julivanespi
      @julivanespi 3 ปีที่แล้ว

      I've been searching videos on how to download but a lot of them show a way that you need to use javascript and use the IJSRuntime to invoke the js. Not the solution I am looking for though...

  • @scottchandler1796
    @scottchandler1796 2 ปีที่แล้ว

    Good stuff. I'm trying to find an example of how to upload a blob to a container that has a folder within it. I can't seem to find an example

  • @TheAzerue
    @TheAzerue 2 ปีที่แล้ว

    Hi @Nick
    very informative video. I have one question. If user wants to upload say 500MB or 1GB video then one way is, it is uploaded to my server first and then again upload it to azure blob. If there a way to have upload it once to azure blob. Thank you for great video, keep up creating quality content.

  • @chuannguyen1686
    @chuannguyen1686 3 ปีที่แล้ว

    hello, could you guide me how to resize image using Azure Blob Storage ? Assume that user try to upload an image with over 10mb and we will resize it to even less than 500kb.

  • @daled3502
    @daled3502 3 ปีที่แล้ว +1

    Hi Nick,
    Found the source code great tutorial... Just wondering if you could include a view for selecting a file for your machine and uploading to azure blob storage.
    That's the one bit I'm having issues with getting done...
    Cheers, Thanks again for a great tutorial..

    • @nicokoch4500
      @nicokoch4500 3 ปีที่แล้ว

      Have you found out what to do? :) I'm also having the same problem

  • @benlewies8828
    @benlewies8828 3 ปีที่แล้ว

    I would have liked to see coverage of Azure Storage emulator as well in the tutorial

  • @anilvadlamudi2039
    @anilvadlamudi2039 4 ปีที่แล้ว

    Hi Nick,
    I like your videos,
    Can you create new videos on Azure AD, Table Storage, Cosmos DB.
    Thank you.

  • @MUKKASAI
    @MUKKASAI 3 ปีที่แล้ว +2

    BlobInfo is custom model or refered from Azure.blobs package? can you please let me know as it is causing issue in my code

    • @AugustoGuerrero
      @AugustoGuerrero 2 ปีที่แล้ว +1

      is a custom model
      public class BlobInfo
      {
      public Stream Content { get; set; }
      public string ContentType { get; set; }
      }

  • @AshokSingh-ot6th
    @AshokSingh-ot6th 3 ปีที่แล้ว +4

    Tell me your Repository Name also for this github code

  • @carlosbaptiste2062
    @carlosbaptiste2062 2 ปีที่แล้ว

    Does Azure blob storage scan for viruses?

  • @diego_solis
    @diego_solis 3 ปีที่แล้ว

    Where can I get the code?

  • @kalaiselvank7643
    @kalaiselvank7643 3 ปีที่แล้ว

    Hi nick,video is awesome .can you share the source code sample .i like to learn with sample .thanks

  • @user-sx1pw6lq4q
    @user-sx1pw6lq4q 3 ปีที่แล้ว

    Hey Everyone. Could anyone explain me the difference between Azure Data Lake Storage Gen2 and About Blob storage. Is it the same?

  • @ksp4441
    @ksp4441 3 ปีที่แล้ว

    @Nick Chapsas Thanks for this tutorial !! How can we use prefix to get reference to blob? e.g. $"{moduleId}/{referenceId}"

  • @guilhermekramer2636
    @guilhermekramer2636 2 ปีที่แล้ว

    Great video, do you have this code on github?

  • @kingsanu5250
    @kingsanu5250 3 ปีที่แล้ว +1

    link not work

  • @arnaspenkaitis6939
    @arnaspenkaitis6939 4 ปีที่แล้ว +1

    Just a quick question, the title says its on .NET core, but I can't find class blobInfo in my project on .NET core, can't be a thing this video is on .NET ?

    • @arnaspenkaitis6939
      @arnaspenkaitis6939 4 ปีที่แล้ว

      Actually after watching a video few times, I saw that it is your custom class. Would be great if you could share whole source code.

    • @nickchapsas
      @nickchapsas  4 ปีที่แล้ว

      It is shared. You can find a link in the description

  • @kingsanu5250
    @kingsanu5250 3 ปีที่แล้ว +1

    fot Get BlobInfo now not work plz update for 12.0

  • @malikehsan147
    @malikehsan147 ปีที่แล้ว

    How to list only blobs based on LastModifiedDate?

  • @kuvashennaidoo6238
    @kuvashennaidoo6238 4 ปีที่แล้ว +1

    I have registered but I still cannot get to the code. What is the name of the repo?

  • @AshokSingh-ot6th
    @AshokSingh-ot6th 3 ปีที่แล้ว

    How to get github code for this

  • @alexandermelchers1497
    @alexandermelchers1497 2 ปีที่แล้ว

    Great intro into Blob Storage! But that file-upload mechanism looks like black magic to me...! 😯 I mean, you just post some JSON to the server, presumably not sending the actual file content along. So, how does the server end up getting access to the file? From what I understand from web technology (though that might be dated) is that this would require another client-triggered request... 🤔

  • @KrakenPipe
    @KrakenPipe 3 ปีที่แล้ว +7

    BlobInfo doesn't take any constructors, what am I doing wrong? 10:30

    • @filipskukan7081
      @filipskukan7081 3 ปีที่แล้ว

      Nick made his own BlobInfo class in the models. You can get access to his source code if you press the link in the description. After you fill out the form in the link, you should get an email invitation to his repository in couple of minutes.

  • @AugustoGuerrero
    @AugustoGuerrero 2 ปีที่แล้ว

    Hey everybody! can some one share the link to the repo of this?

  • @MrDonald911
    @MrDonald911 2 ปีที่แล้ว +1

    It would have been easier to follow if you showed the IBlobService interface file inside your models folder ...

  • @kawthooleidevelopers
    @kawthooleidevelopers ปีที่แล้ว +1

    How come my BlobInfo constructor doesn't take any argument? Does your BlobInfo come from using Azure.Storage.Blobs.Models?

  • @saadben90
    @saadben90 3 ปีที่แล้ว +1

    Why you don't want to make your code source public ?

  • @pawarasiriwardhane7755
    @pawarasiriwardhane7755 3 ปีที่แล้ว +6

    Pin this message. (For all the model classes)
    Most people watching this video are confused at the beginning.
    Please maintain a proper organization within your video content.
    * 12:56 UploadFileRequest.cs
    * 17:36 UploadContentRequest.cs
    * For the BlobInfo Class:
    class BlobInfo
    {
    public String Content { get; set; }
    public string ContentType { get; set; }
    }

  • @octavioarruda183
    @octavioarruda183 2 ปีที่แล้ว

    The code isn't on description, so a lot of things are not clear just watching the video
    Thank you anyway for the great tutorial

    • @nickchapsas
      @nickchapsas  2 ปีที่แล้ว +1

      It is in the description. You have to be a patreon to get the code, but the instructions are there

  • @brianwells990
    @brianwells990 2 ปีที่แล้ว

    20:00 where Nick tips us off that he likes PostgreSQL... see him type out jsonb but then catches error and removes the 'b'... LOL

  • @jeremyrooks9784
    @jeremyrooks9784 9 หลายเดือนก่อน

    You never show 'BlobInfo' class.

  • @kunalr_ai
    @kunalr_ai ปีที่แล้ว

    Watching after 2 years in Oct 2022 . Don't know what to do

  • @ee_tech_channel6148
    @ee_tech_channel6148 2 ปีที่แล้ว

    Thanks for very clear explanation :) I will also ask about how can I return MD5 integrity checksum of my file, that uploaded to my blobStorage? Hope you can help me.