com.microsoft.azure.storage.blob.BlobInputStream is deprecated what is the replacement of this class

Copper Contributor

I need to read blob as input stream, and the class com.microsoft.azure.storage.blob.BlobInputStream

is legacy, what is the alternative to this.

2 Replies
I never worked with the SDK myself. But after a small search I suspect that you need use: com.microsoft.azure.storage.blob.CloudBlockBlob.

Here's an example where they use it:
https://www.programcreek.com/java-api-examples/?api=com.microsoft.azure.storage.blob.CloudBlockBlob