Hello SkillUP AS,
I just tried below piece of React code with the html tag and the image is getting extracted from the storage container (like below)
To get the URL for the storage container blob image
Regards, Shiva.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi, I'm attempting to show the preview image on my React app. I tried to use Url with 'https://{accountName}'.blob.core.winodws.net/{containerName}/{blobName} and I also tried the url with Sas token. ( I got it from generateSasUrl) Both doesn't work with <img> html tag. What url should I use for the tag? and How can I get the url with container and image name? BTW, Images are uploaded using uploadBrowerData
Hello SkillUP AS,
I just tried below piece of React code with the html tag and the image is getting extracted from the storage container (like below)
To get the URL for the storage container blob image
Regards, Shiva.
Hello SkillUP AS, Thank you for posting your query here!
Your image should be able to show on your page with:
<img src="the_url_of your_image">
You could access blob with Blob URL(https://{storage-name}.blob.core.windows.net/{container-name}/{test.png}) when your image blob is public.
If the access level is private, you could access the image blob with SAS. And the URL looks like https://{storage-name}.blob.core.windows.net/{container-name}/{test.png}?{Blob SAS token}
.
Do let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.