I upload the image by using azure blobclientservice as belows
let fr = new FileReader();
let result = {};
fr.onload = async function () {
var data = fr.result;
await blockBlobClient
.uploadData(data, {
concurrency: 20,
blobHTTPHeaders: {
blobContentType: photo.type,
},
})
.then((res) => {
result = res;
console.log(res);
})
.catch((error) => {
console.log(error);
result.error = true;
});
};
fr.readAsArrayBuffer(photo);
And I got the url from the response successfully. I hope to use this url as the src in image tag in html instead of download all data from the storage. But it doesn't show the image and I can only see alt instead of image. I think it is possible to read the image by using url when it is stored in aws s3 bucket as public. I want the same functionality in azure storage. Is it possible? I will be appreciative if somebody helps me.