From 6b21720ede57ab74de8a1f8c855710924d729c8a Mon Sep 17 00:00:00 2001 From: Thomas Gaudin Date: Mon, 9 Jul 2018 11:28:36 +0200 Subject: [PATCH] Fix uploaded blob content --- example.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example.rb b/example.rb index 669f72f..8c7e808 100644 --- a/example.rb +++ b/example.rb @@ -87,7 +87,7 @@ def run_sample puts "\nUploading to Blob storage as blob: " + local_file_name # Upload the created file using local_file_name for the blob name - blob_client.create_block_blob(container.name, local_file_name, full_path_to_file) + blob_client.create_block_blob(container.name, local_file_name, IO.binread(full_path_to_file)) # List the blobs in the container puts "\nList blobs in the container following continuation token"