Question

I'm currently trying out the Azure TableStorage and have a question regarding BlockBlobs: Can I download specific BlobBlocks by their BlockID using REST (and how)?

I thought it could be something like: http://storagename.blob.core.windows.net/test/hello.zip?&blockid=001 , but this returns the whole file.

Thanks in advance

Was it helpful?

Solution

Currently it is not possible today but it sure is a good request.

You could do the following as an alternative:

  1. Get the blocklist first
  2. Calculate the offset (using the length associated with each block)
  3. Issue a Range Get request for that offset/length

OTHER TIPS

You have to download Blocks by byte range. Range option must be set within HTTP Header (not in url query string).

Example:

GET /test/hello.zip HTTP/1.1
Range: bytes=0-102399
Host: storagename.blob.core.windows.net

http://msdn.microsoft.com/en-us/library/windowsazure/dd179440.aspx

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top