Azure - is one 'block blob' seen as one file? -
question background:
this may simple question cant find answer it. i've started using azure storage (for storing images) , want know if 1 'blob' holds maximum of 1 file?
this container called fmfcpics
:
within container have block blob named myblob
, within have 1 image:
through following code, if upload image file myblob
block blob
overwrites image in there:
cloudblockblob blockblob = container.getblockblobreference("myblob"); using (var filestream = system.io.file.openread(@"c:\users\me\pictures\image1.jpg")) { blockblob.uploadfromstream(filestream); }
is overwriting correct? or should able store multiple files @ myblob
?
each blob separate entity, direct-addressable via uri:
http(s)://storageaccountname.blob.core.windows.net/containername/blobname
if want manage multiple entities (such image jpg's in case), upload each 1 separate blob name (and you're free store many want within single container, , may have many containers want).
note: these block blobs. there page blobs have random-access capability, , basis vhd storage (and in case, vhd have formatted file system within it, multiple files).
Comments
Post a Comment