如何公开访问Microsoft Azure存储服务中的对象? [英] How to access an object in Microsoft Azure Storage Service publicly?

查看:174
本文介绍了如何公开访问Microsoft Azure存储服务中的对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想上传一些要存储在Azure中的图像,我发现Blob中有一个名为存储"的文件,经过一些研究后,我能够在存储服务中创建我的帐户,并使用"Azure"进行访问存储资源管理器".

I would like to upload some images to be stored in Azure, I discovered that there is called 'Storage' in Blob, after doing some research I was able create my account in storage service and I'm accessing it with 'Azure Storage Explorer'.

1)还有另一种我可以访问我的存储帐户的软件?还是另一种方式?

1)There's another software that I could access my storage account ? Or another way to do it ?

2)公共容器"和公共斑点"有什么区别?

2)What's the difference between 'public container' and 'public blob'?

3)我想创建子文件夹,该怎么办?

3)I would like to create sub-folders, how can I do that ?

4)如何制作上传到公共博客"中的名为图像"的图像,像这样image\azure.png并且可以从互联网上的任何人访问?

4)How can I make an image that I upload to the 'public blog' called 'image', been like this image\azure.png and be accessible from anyone in internet ?

在S3(来自Amazon)中,您可以说该对象是否是公共对象,然后从某些URL访问它.使用Azure存储服务可以做到这一点吗?

In S3 (from Amazon) you can say if that object is public and then access it from certain url. Is that possible do that with Azure Storage service ?

我知道有很多问题,但是对我来说,理解这些东西以及如何使其暂时起作用似乎有些复杂.

I know is a lot of questions but for me it seems a little complicated to understand these things and how make them work for now.

推荐答案

以下是您的问题的答案:

Here are the answers to your questions:

  1. 访问存储帐户的唯一官方"方式是通过REST API(或使用该API的SDK).除此之外,还有一些不错的工具可让您访问存储帐户:

  1. The only 'official' way to access your storage account is through the REST API (or an SDK using this API). Besides that there are a few good tools that allow you to access your storage account:

  • http://www.cerebrata.com/products/cloudstoragestudio/
  • http://www.cloudberrylab.com/free-microsoft-azure-explorer.aspx
  • https://www.myazurestorage.com/ (web based!)
  • http://azurestorageexplorer.codeplex.com/

公共容器允许您获取该容器中所有可用blob的列表,并获取容器元数据.公共Blob意味着您必须知道Blob的确切网址才能访问它.参考: http://msdn.microsoft.com/en-us/library/dd179354

Public container allows you to get a list of all blobs available in that container and get container metadata. Public blob means you have to know the exact url to the blob in order to access it. Reference: http://msdn.microsoft.com/en-us/library/dd179354

目录实际上并不存在.只需在"mydir/myblob.txt"中将您的blob重命名即可模拟目录.如果您使用CloudBerry的工具,则会看到目录结构(我将其用于存储文件).

Directories don't really exist. Just rename your blob in "mydir/myblob.txt" for example to simulate directories. If you use the tool by CloudBerry you will see the directory structure (I use this for storing files).

将容器权限更改为public blob,然后上传图像.然后它将在URL上可用(在这里我假设您的容器称为 image ):

Change the container permission to public blob, upload the image. Then it will be available on the url (here I'm assuming your container is called image): http://YOURSTORAGEACCOUNTHERE.blob.core.windows.net/image/azure.png

这篇关于如何公开访问Microsoft Azure存储服务中的对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆