79481217

Date: 2025-03-03 14:33:49
Score: 1.5
Natty:
Report link

Silly mistake, I needed to feed the blob name I wanted to create into .get_blob_client. And I didn't need to create blob_service_client = BlobServiceClient(client)

Amended code:

blob_name = "testCsv.csv"
blob_client = container.get_blob_client(blob_name)
blob_client.upload_blob(csv_bytes, overwrite=True)
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: CGarden