Download presentation
Presentation is loading. Please wait.
5
http://fabrikamlegal.blob.core.windows.net/imagefiles?resttype=container&comp=list Banner.jpg http://fabrikamlegal.blob.core.windows.net/imagefiles/Banner.jpg Boy_And_Gift.png …
7
FileStream fs = new FileStream("mov1.avi",…,…,…); var blob = con.GetBlobReference("mov1.avi"); blob.UploadFromStream(fs); blob.Metadata["VideoName"] = "Wildlife.avi"; blob.Metadata["Category"] = "Travel"; blob.Metadata["DateSubmitted"] = DateTime.Now; blob.SetMetadata(); blob.Properties.ContentType = "video/x-msvideo"; blob.SetProperties();
8
var azureBlobs = con.ListBlobs(); var listOfBlobs = new List (); foreach (var blobItem in azureBlobs) { var azureBlobRecord = con.GetBlobReference(blobItem.Uri.ToString()); azureBlobRecord.FetchAttributes(); listOfBlobs (new VideoBlobStorage() { FileUri = blobItem.Uri, VideoName = azureBlobRecord.Metadata["VideoName"], Category = azureBlobRecord.Metadata["Category"], DateSubmitted = azureBlobRecord.Metadata["DateSubmitted"] }); }
9
Managing Blob Storage
12
azureBlobPermissions = new BlobContainerPermissions(); azureBlobPermissions.PublicAccess = BlobContainerPublicAccessType.Container; cont.SetPermissions(azureBlobPermissions);
13
SharedAccessPolicy policy = new SharedAccessPolicy(); policy.Permissions = SharedAccessPermissions.Read; policy.SharedAccessStartTime = DateTime.UtcNow.AddMinutes(-10); policy.SharedAccessExpiryTime = DateTime.UtcNow.AddMinutes(60); String signature = blob.GetSharedAccessSignature(policy);
14
SharedAccessPolicy policy = new SharedAccessPolicy(); policy.Permissions = SharedAccessPermissions.Read; policy.SharedAccessStartTime = DateTime.UtcNow.AddMinutes(-10); policy.SharedAccessExpiryTime = DateTime.UtcNow.AddMinutes(60); String signature = blob.GetSharedAccessSignature(policy); azureBlobPermissions = new BlobContainerPermissions(); azureBlobPermissions.SharedAccessPolicies.Add("policy1“, policy); cont.SetPermissions(azureBlobPermissions);
15
Azure Storage Explorer
17
[ServiceContract] public interface IService1 { [OperationContract] [WebGet(UriTemplate = "{Container}")] Stream BlobInfo(string Container); }
18
SharePoint 2010 Integration
20
Call to Action For Download Download SharePoint VM http://www.microsoft.com/downloads/details.aspx?familyid=751FA0D1- 356C-4002-9C60-D539896C66CE&displaylang=en Download Azure Developer Center http://msdn.microsoft.com/en-us/azure/default.aspx Windows Azure SDK and Windows Azure Tools for Microsoft Visual Studio (November 2010) http://www.microsoft.com/downloads/en/details.aspx?FamilyID=7a1089b6- 4050-4307-86c4-9dadaa5ed018&displaylang=en For Reference Channel 9 SharePoint Developer Training Kit http://channel9.msdn.com/learn/courses/SharePoint2010Developer/ Channel 9 Azure Developer Training Kit http://channel9.msdn.com/learn/courses/Azure/
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.