简体   繁体   中英

Azure upload file from an external computer

I'm want to upload file to azure blob storage via c# from an external computer which is not part of azure system (simply my own computer). I found only Microsoft example for azure cloud services.

You can use Visual studion server explorer to load manualy or write code.

CloudBlockBlob blockBlob = blobDirectory.GetBlockBlobReference("blobname");
blockBlob.UploadFromStream(stream); //stream of file

Another way using Azure storage power shell

Set-AzureStorageBlobContent -Container containerName -File .\filename -Blob blobname

Yeah, you can upload to blob storage from anywhere. Doesn't have to be part of the azure infrastructure.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM