How to access an azure storage blob as if it were a local file?
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.
精彩评论