blob-upload-4_1.py 326 B

12345
  1. def upload_file_to_blob(upload_file_path, target): #file path - >file path
  2. blob_client = blob_service_client.get_blob_client(container=container_name, blob=target)
  3. print("\nUploading to Azure Storage as blob:\n\t" + upload_file_path)
  4. with open(upload_file_path, "rb") as data:
  5. blob_client.upload_blob(data)