开发者

How to access an azure storage blob as if it were a local file?

开发者 https://www.devze.com 2023-03-06 06:58 出处:网络
Is there a way to \"mount\" a file for read/write access? I realize that I can开发者_开发百科 GetBlobReference and BlobStream but what if I just want to give a file path to a library that doesn\'t und

Is there a way to "mount" a file for read/write access? I realize that I can开发者_开发百科 GetBlobReference and BlobStream but what if I just want to give a file path to a library that doesn't understand Azure?

One example: A "Logger" library that just appends text to a specified file in some fashion. Another (more realistic) example: Datasource for .sdf (sql server compact 4)


You can mount a page blob as an NTFS file system using XDrive. See this blog post.


As Oliver says you can use XDrive for this - but if you do this then please consider that only one role instance can have write access to the drive - so it's not a good solution for load balanced SQL CE.

For the logger scenario, you could also consider using some algorithm on "paged blobs" - see http://msdn.microsoft.com/en-us/library/ee691964.aspx. This won't be "normal file access", but could be used across multiple roles and role instances.

0

精彩评论

暂无评论...
验证码 换一张
取 消