Create a gist now

Instantly share code, notes, and snippets.

@polatengin /981
Last active Oct 3, 2016

What would you like to do?
http://www.enginpolat.com/console-projesinde-azure-blob-storage-nasil-kullanirim/
public static void Main()
{
var account = CloudStorageAccount.Parse("CONNECTION_STRING");
var client = account.CreateCloudBlobClient();
var container = client.GetContainerReference("resimler");
container.CreateIfNotExists();
var dosyalar = container.ListBlobs();
foreach(var dosya in dosyalar)
{
//
}
var profileImage = container.GetBlockBlobReference("profileimage.jpg");
profileImage.UploadFromFile("LOCAL_DOSYA_ADI");
//profileImage.DownloadToFile("LOCAL_DOSYA_ADI")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment