-
-
Save polatengin/16f8fa0f1ea0d19af96d542f7d0ea835 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.enginpolat.com/console-projesinde-azure-blob-storage-nasil-kullanirim/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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