BlobData Property
Contains the data of one blob/block.
Syntax
azureblob.getBlobData([callback]) azureblob.setBlobData( blobData_Buffer, [callback])
Default Value
""
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for the getBlobData([callback]) method is defined as:
function(err, buffer){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'buffer' is the value returned by the method.
The callback for the setBlobData([callback]) method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
This property is used to get or set the data of a blob/block.
BlobData will be populated after a successful GetBlob call, provided that LocalFile is not set. If LocalFile is set, the blob data will be written to the file specified.
When CreateBlock is called, the content of this property will be used to create the block. Note that blocks have a 4 MB size limit. Trying to upload a block larger than 4 MB will result in a 413 (Request Entity Too Large) error.
When CreateBlob is called, the content of this property will be used to create the blob, provided that LocalFile is not set. If LocalFile is set, the specified file will be used to create the blob.
This property is not available at design time.
Data Type
Buffer