的Windows Azure Blob存储模拟器文件的存放位置 [英] Windows Azure Blob Storage Emulator File Storage Location

查看:620
本文介绍了的Windows Azure Blob存储模拟器文件的存放位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在什么地方的Windows Azure Blob存储仿真器(是的,仿真器)存储文件上传到了吗?作为是什么,它​​是储存我的本地机器上斑点的实际文件夹(路径)?我把它设置和运行,我可以成功上传斑点和检索斑点,但我想知道在哪里模拟器实际存储的文件。上传BLOB后,我得到的地址是:

Where does the Windows Azure Blob Storage Emulator (yes, the emulator) store files uploaded to it? As in, what is the actual folder (path) that it is storing blobs on my local machine? I have it setup and running and I can successfully upload blobs and retrieve blobs, but I'd like to know where the emulator is actually storing the files. After uploading a blob, the address I get is:

http://127.0.0.1:10000/devstoreaccount1/mycontainer/picture.png 

我使用的XAMPP和文件似乎并不在我的htdocs文件夹。我只是好奇,这就是全部。

I am using xampp and the files don't seem to be in my htdocs folder. I'm just curious, that's all.

推荐答案

存储模拟器听你看到有地址,但是当请求进来它使用SQL店作为后端存储。

The storage emulator listens at the address you see there, but when requests come in it uses the SQL store as the back end storage.

存储模拟器使用SQL Server的LocalDB默认情况下,也可以使用DSInit.exe命令行实用程序以完整的SQL Server实例来点吧。然后所有的表,队列和BLOB数据被保存在该数据库。在BLOB中的情况下,元数据被存储在数据库中,但随后的文件存储在应用程序数据的目录。例如,我的一次是在c:\\users\\michael\\appdata\\local\\developmentstorage\\sql\\blockblobroot\\1\\c1ba3640-ad8e-4cbb-8818-95c7d866cb71.

The storage emulator uses SQL Server LocalDB by default, or you can use the DSInit.exe command line utility to point it at a full SQL Server instance. All table, queue and BLOB data is then saved in that database. In the case of BLOBs the metadata is stored in the database, but then the file is stored in an appdata directory. For example, one of mine was in c:\users\michael\appdata\local\developmentstorage\sql\blockblobroot\1\c1ba3640-ad8e-4cbb-8818-95c7d866cb71.

如果您在SQL防爆preSS或SQL Server实例点模拟器然后你可以使用SQL Management Studio连接到该实例,并深入到表中。有一个名为斑点与目录路径的一列它会告诉你的文件表。我不会与这个数据库的结构或文件结构去乱搞多使用API​​或存储工具之外,或者您可能与您当地的模拟器稳定性造成的问题。

If you point your emulator at a SQL Express or SQL Server instance you can then use SQL Management Studio to connect to that instance and dig into the tables. There is a table named Blob with a column of DirectoryPath which will tell you were the files are. I wouldn't go messing around much with the structure of this database, or the file structure outside of using the API or a storage tool or you may cause issues with your local emulator stability.

另外请注意,这是数据不是如何存储在Windows Azure中,当地仅模拟器模拟如何吧。

Also note that this is NOT how the data is stored in Windows Azure, only how the local emulator simulates it.

这篇关于的Windows Azure Blob存储模拟器文件的存放位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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