I tried following azure storage Samples and am able to upload the blob. I am trying to get the Uri of the uploaded blob but I couldn't get the Uri.
In the previous SDK v7, I was able to do blobItem.getUri(), but couldn't find it in the new version. I tried the following, however the metadata doesn't have the Uri, its actually the properties. How do I get the Uri
blobURL.upload(Flowable.just(ByteBuffer.wrap(image)), image.length, headers, mData, null, null)
.flatMap(bulkBlockBlobUploadResponse -> {
this.getContext().getLogger().info(bulkBlockBlobUploadResponse.headers().eTag());
return Single.just(true);
})
.flatMap(response ->
// Query the blob's properties and metadata.
this.getBlockBlobURL().getProperties(null, null))
.flatMap(blobGetPropertiesResponse -> {
this.getContext().getLogger().info(blobGetPropertiesResponse.headers().metadata().toString());
return Single.just(true);
})