Reputation: 73
I am building a Xamarin.Android app. This app will allow users to upload images to Azure Blob Storage and access them from any device with an internet connection. I would like to obtain the image URL of the image uploaded, however I don't know how to get the image URL once uploaded. Once I get the image URL I would like to store it in my Azure SQL Database, which is how the app will reference the image required to be downloaded and displayed.
I am currently in the planning phase and researching how to upload images to Azure Blob Storage. I don't know how to obtain the image URL once the image has been uploaded. The image URL will need to be obtained dynamically and cannot be hard-coded.
I have checked this question: How to download an Azure BLOB Storage file via URL.
The expectation is that users will be able to upload images to Azure Blob Storage, the C# code will obtain the image URL and store this in the database, allowing the app to display the image from its URL.
Upvotes: 5
Views: 18967
Reputation: 403
Go to the portal --> Your Storage account --> blobs (services) --> Click the file
This will open the details of the file.The url can be viewed in Overview .
Upvotes: 0
Reputation: 2351
The URL is always
https://<storage_account_name>.blob.core.windows.net/<container_name>/<blob_name>
Note that blob name can also be a path like 2019/02/01/myfile.txt
Upvotes: 6