Azure Blob Storage Tutorial - C# Photo Gallery App | Part 2

  Рет қаралды 20,916

Billy Tech

Billy Tech

Күн бұрын

Пікірлер: 38
@CodingSquid
@CodingSquid 5 жыл бұрын
Just what I was looking for. I'm new to C# and MVC Core so I appreciated the simple way the problem was solved in the first half. Then because of the first half, the refactored code made more sense. Nice job and thank you!
@CodingSquid
@CodingSquid 5 жыл бұрын
Anyone have any tips on downloading images from an Azure container with private access level?
@CodingSquid
@CodingSquid 5 жыл бұрын
// Class AzureBlobService method ListAsync (refactored version) modified to work with Azure private containers public async Task ListAsync() { // (Replace IFUserName with Identity Framework Username or some IF key) string SASPolicyName = "IFUserName"; CloudBlobContainer blobContainer = await _azureBlobConnectionFactory.GetBlobContainer(); // For Private container add custom policy for access BlobContainerPermissions containerPermissions = await blobContainer.GetPermissionsAsync(); // delete old SAS policy if it exists containerPermissions.SharedAccessPolicies.Remove(key: SASPolicyName); // Create new SAS policy containerPermissions.SharedAccessPolicies.Add(SASPolicyName, new SharedAccessBlobPolicy { // Client must be -1 though +1 hours of Azure server for download to authorize Permissions = SharedAccessBlobPermissions.Read, SharedAccessStartTime = DateTime.UtcNow.AddHours(value: -1), SharedAccessExpiryTime = DateTime.UtcNow.AddHours(value: 1) }); await blobContainer.SetPermissionsAsync(containerPermissions); // Gets all Cloud Block Blobs in the blobContainerName and passes them to the view List allBlobs = new List(); BlobContinuationToken blobContinuationToken = null; do { var response = await blobContainer.ListBlobsSegmentedAsync(blobContinuationToken); foreach (IListBlobItem blob in response.Results) { if (blob.GetType() == typeof(CloudBlockBlob)) { CloudBlockBlob cloudBlockBlob = (CloudBlockBlob)blob; string sharedAccessSignature = cloudBlockBlob.GetSharedAccessSignature(null, SASPolicyName); allBlobs.Add(new Uri(blob.Uri.ToString() + sharedAccessSignature)); } } blobContinuationToken = response.ContinuationToken; } while (blobContinuationToken != null); return allBlobs; }
@d0xalic
@d0xalic 4 жыл бұрын
Thanks for the explanatory video! Very appreciated. Just a small feedback, most of viewers put the speed on 1.5x and then the music gets really irritating, like others already mentioned. Just wanted to give this feedback. Otherwise great!
@Mafyou75
@Mafyou75 2 жыл бұрын
Amazing! Great Factory & Singleton with DI ;-) I wasn't prepare hahaha
@lisajongejans5818
@lisajongejans5818 4 жыл бұрын
Very helpful, thanks! Just the background music was a little distracting. But explanations were great.
@ramganapathy3298
@ramganapathy3298 4 жыл бұрын
Extremely detailed and useful video. Thanks for sharing it!!
@acousticbrothers1491
@acousticbrothers1491 5 жыл бұрын
Hello sir, thanks for the great explanation, but I have a question. How can I check if my file is uploaded succesfully or not? Please help.. I found "isDeleted" property which I assume helps to check if it is deleted :) but I couldnt find one for the "uploadfromstream" method.
@bideveloper9325
@bideveloper9325 4 жыл бұрын
Am facing same issue, did you resolved this, Actually I am trying to download from Sftp to azure blob storage, Can you help me
@acousticbrothers1491
@acousticbrothers1491 4 жыл бұрын
@@bideveloper9325 I couldn't find a correct way to do that but I've simply changed a few things so dotnetfiddle.net/k5X8uo here is a small demo that you can use.
@bideveloper9325
@bideveloper9325 4 жыл бұрын
AcousticBrothers ok, thank you
@glasuno9610
@glasuno9610 5 жыл бұрын
Nice work! Thanks for share that tutorial! SUPER HELPFUL!
@stevestrongbah2634
@stevestrongbah2634 5 жыл бұрын
very good video, but next time please to not play music in the background
@larman36
@larman36 3 жыл бұрын
Excellent! Thank you so much!!
@richmondng3567
@richmondng3567 3 жыл бұрын
Is this 100%working?
@nurda1997
@nurda1997 5 жыл бұрын
Sorry Sir for inconvenience, I have a Books table, where I have Book Name, Author, Published Year, and Book's Image, My task is store Book's image in the Blob, Could please help me, sir? Thank you!!
@Kardenslayer
@Kardenslayer 4 жыл бұрын
Great serie! thanks for the videos
@ItsCmiHD
@ItsCmiHD 5 жыл бұрын
Great video, I learned a lot. Can you do a tutorial with NoSQL on Azure?
@doannam612
@doannam612 5 жыл бұрын
Great work! But I'm having trouble using it with Razor Page, more specifically, the [HttpPost] seems not working, would be great if you can help me with this
@doannam612
@doannam612 5 жыл бұрын
@@BillyTech0 I'm using Razor Page to do it instead of the MVC, but seems like it's not working
@doannam612
@doannam612 5 жыл бұрын
Nvm I've firgured it out, but thanks anyway
@jacobwest1955
@jacobwest1955 4 жыл бұрын
@@doannam612 Do you have a GitHub that I could take a look at it on? I am also struggling with this fact.
@sayanduttamajumdar2299
@sayanduttamajumdar2299 2 жыл бұрын
where can I get the code?
@daled3502
@daled3502 4 жыл бұрын
Hi, Really good video.... Any chance of updating this video to use Azure.Storage.Blobs.. As the Windows.Azure.Stoarage is now deprrecated...
@bsnow7835
@bsnow7835 3 жыл бұрын
I agree..I cann find any photo gallery using Azure.Storage.blobs...any suggestions..Thanks
@lakshminarasimharaoyadaval4114
@lakshminarasimharaoyadaval4114 5 жыл бұрын
really really helpful..Thanks a lot for the nice work
@nurda1997
@nurda1997 5 жыл бұрын
will it work if I deploy it on azure? not with localhost
@MrMukesh1504
@MrMukesh1504 4 жыл бұрын
instead of copying and writing code too fast, it would be nice if you can explain what are the different option and the purpose of the azure classes.
@vandeljasonstrypper6734
@vandeljasonstrypper6734 5 жыл бұрын
SignalR core can stream video now can you make an app demo that
@kumarRaj-zn2qk
@kumarRaj-zn2qk 4 жыл бұрын
Good one!
@mohammednhari1737
@mohammednhari1737 5 жыл бұрын
Please, What’s a Continuation Token? Thannk you !
@mohammednhari1737
@mohammednhari1737 5 жыл бұрын
@@BillyTech0 Thank ! thank You ! well explained
@lokeshkumarchikkala5292
@lokeshkumarchikkala5292 5 жыл бұрын
Great Work.
@johnny_rain3226
@johnny_rain3226 5 жыл бұрын
super helpful thank you!
@женягуньков
@женягуньков 4 жыл бұрын
I had problems with .NetCore 3.0. Routing has changed a bit and UploadAsync did not work out of box. Startup.cs -> ConfigureServices -> services.AddControllers(); Startup.cs -> Configure-> endpoints.MapControllers(); HomeController.cs -> add attribute [Route("Home/UploadAsync")] See more: docs.microsoft.com/en-us/aspnet/core/mvc/controllers/routing?view=aspnetcore-3.1
@rizalghani7090
@rizalghani7090 5 жыл бұрын
thanks bro
@imreboga7529
@imreboga7529 5 жыл бұрын
te pup te alea jupane
@yhimywilbertoferia2918
@yhimywilbertoferia2918 5 жыл бұрын
Great Work.
Working With Azure Blob Storage in .NET apps. From Zero To Hero
22:06
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Simple File API Using Azure Blob Storage (running locally)
15:12
Milan Jovanović
Рет қаралды 13 М.
Using Blob Storage [3 of 8] | .NET on Azure for Beginners
22:07
Asp.Net Core API File Upload to Azure Blob Storage
16:09
Codewrinkles
Рет қаралды 15 М.
Clean Architecture with ASP.NET Core 9
27:01
dotnet
Рет қаралды 41 М.
AZURE BLOB STORAGE - Getting Started | Azure Series
30:21
Rahul Nath
Рет қаралды 7 М.
What is the Azure Blob Storage? | How to Use the Azure Blob Storage
20:32