Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Saving images in Azure storage

I am building a web application , where users can upload images & videos and store them in their account. I want to store these files somewhere and save only the URL in the DB.

What is the right way to do it using Azure services? Is there a dedicated server for this, or some VM?

like image 577
Bergerova Avatar asked Jul 21 '15 05:07

Bergerova


People also ask

Can we store images in Azure Blob Storage?

Azure Blob Storage is Microsoft's massively scalable object storage solution for the cloud. Blob Storage is designed for storing images and documents, streaming media files, managing backup and archive data, and much more. You can read more about Blob Storage on the overview page.

Can I store my photos in Azure?

Yes, there is a dedicated service for this purpose. It is the Azure Blob Storage. And you are highly advised to save all and any user uploaded content to that service instead to the local file system. The provided link has samples for almost any language that has client SDK provided by microsoft.

How do I access image in Azure Blob Storage?

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.


1 Answers

Yes, there is a dedicated service for this purpose. It is the Azure Blob Storage. And you are highly advised to save all and any user uploaded content to that service instead to the local file system.

The provided link has samples for almost any language that has client SDK provided by microsoft.

If, at the end you use some platform or language that is not directly supported by an SDK, you can always refer to the Blob Storage REST API documentation.

You will need to go through the blob service concepts to get deeper understanding of the service and how to use it.

like image 103
astaykov Avatar answered Oct 12 '22 23:10

astaykov