How to upload a numpy.ndarray image into Azure Storage Blob

Viewed 56

I would like to upload an image numpy.ndarray data into Azure Storage Blob. I am using the BlobServiceClient. But I cannot find a way for upload_blob to accept a numpy.ndarray. How can I upload it?

     blob_client = blob_service_client.get_blob_client(
         container=CONTAINER, blob=filename)

     blob_client.upload_blob(file)
0 Answers
Related