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

Поділитися
Вставка
  • Опубліковано 8 січ 2025

КОМЕНТАРІ • 83

  • @pawarasiriwardhane7755
    @pawarasiriwardhane7755 3 роки тому +7

    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; }
    }

  • @pedramfeyz2173
    @pedramfeyz2173 4 роки тому +31

    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 4 роки тому

      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;
      }

  • @eqwerty610
    @eqwerty610 4 роки тому +1

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

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

  • @khwezimngoma
    @khwezimngoma 3 роки тому

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

  • @vasylstolyarchuk6226
    @vasylstolyarchuk6226 4 роки тому

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

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

  • @thund3rstruck
    @thund3rstruck 4 роки тому +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 3 роки тому

      Same, did you find a solution?

  • @noahb5019
    @noahb5019 2 роки тому

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

  • @mrinmoychowdhury4667
    @mrinmoychowdhury4667 Рік тому

    Excellent explanation brother ❤

  • @flaviocamello3645
    @flaviocamello3645 3 роки тому

    Thanks! I was problem with Azure Storage!

  • @arjunrr4923
    @arjunrr4923 4 роки тому +4

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

  • @danielarandamartin2709
    @danielarandamartin2709 2 роки тому

    Great Tutorial ! Thank you very much.

  • @ShahabLodhi
    @ShahabLodhi Рік тому

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

  • @LieberLois
    @LieberLois 4 роки тому

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

  • @KrakenPipe
    @KrakenPipe 4 роки тому +7

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

    • @filipskukan7081
      @filipskukan7081 4 роки тому

      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.

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

  • @frankenbeans6930
    @frankenbeans6930 4 роки тому

    Great tutorial! Thanks!

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

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

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

  • @ee_tech_channel6148
    @ee_tech_channel6148 3 роки тому

    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.

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

  • @daled3502
    @daled3502 4 роки тому +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

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

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

  • @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 3 роки тому +1

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

  • @rahulsbhatt
    @rahulsbhatt 3 роки тому

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

  • @benlewies8828
    @benlewies8828 3 роки тому

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

  • @cryptowref9818
    @cryptowref9818 4 роки тому

    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?

  • @graphboss
    @graphboss 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?

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

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

  • @tylercrane6368
    @tylercrane6368 4 роки тому

    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!

  • @TheAzerue
    @TheAzerue 3 роки тому

    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.

  • @AshokSingh-ot6th
    @AshokSingh-ot6th 4 роки тому +4

    Tell me your Repository Name also for this github code

  • @will44559
    @will44559 3 роки тому

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

  • @igorhenriques931
    @igorhenriques931 4 роки тому +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 4 роки тому

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

  • @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".

  • @octavioarruda183
    @octavioarruda183 3 роки тому

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

  • @teachforkawthoolei
    @teachforkawthoolei 2 роки тому +1

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

  • @malikehsan147
    @malikehsan147 2 роки тому

    How to list only blobs based on LastModifiedDate?

  • @anilvadlamudi2039
    @anilvadlamudi2039 4 роки тому

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

  • @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... 🤔

  • @guilhermekramer2636
    @guilhermekramer2636 3 роки тому

    Great video, do you have this code on github?

  • @chuannguyen1686
    @chuannguyen1686 4 роки тому

    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.

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

  • @ksp4441
    @ksp4441 4 роки тому

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

  • @kuvashennaidoo6238
    @kuvashennaidoo6238 4 роки тому +1

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

  • @kalaiselvank7643
    @kalaiselvank7643 4 роки тому

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

  • @carlosbaptiste2062
    @carlosbaptiste2062 3 роки тому

    Does Azure blob storage scan for viruses?

  • @AugustoGuerrero
    @AugustoGuerrero 3 роки тому

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

  • @kingsanu5250
    @kingsanu5250 4 роки тому +1

    fot Get BlobInfo now not work plz update for 12.0

  • @saadben90
    @saadben90 4 роки тому +1

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

  • @kingsanu5250
    @kingsanu5250 4 роки тому +1

    link not work

  • @diego_solis
    @diego_solis 3 роки тому

    Where can I get the code?

  • @НиколайЗиненко-и3ю

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

  • @luke-w8b
    @luke-w8b Рік тому

    Thank you

  • @AshokSingh-ot6th
    @AshokSingh-ot6th 4 роки тому

    How to get github code for this

  • @octavioarruda183
    @octavioarruda183 3 роки тому

    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  3 роки тому +1

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

  • @EasyCodify
    @EasyCodify 2 місяці тому

    useful
    great

  • @jeremyrooks9784
    @jeremyrooks9784 Рік тому

    You never show 'BlobInfo' class.

  • @kunalr_ai
    @kunalr_ai 2 роки тому

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