Skip to content

Instantly share code, notes, and snippets.

@polatengin
Last active October 3, 2016 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save polatengin/16f8fa0f1ea0d19af96d542f7d0ea835 to your computer and use it in GitHub Desktop.
Save polatengin/16f8fa0f1ea0d19af96d542f7d0ea835 to your computer and use it in GitHub Desktop.
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