Skip to content

Instantly share code, notes, and snippets.

@melkio
Created November 3, 2012 07:09
Show Gist options
  • Save melkio/4006379 to your computer and use it in GitHub Desktop.
Save melkio/4006379 to your computer and use it in GitHub Desktop.
Upload a nested file to azure blob storage
// ...setup container
var file = container.GetBlockBlobReference("directory/nested_file");
using (var stream = new MemoryStream(File.ReadAllBytes("path_del_file")))
{
stream.Seek(0, SeekOrigin.Begin);
file.UploadFromStream(stream);
stream.Close();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment